From 6c4fd8bb6478077a9fd7b92c9cb7fdf9d6c42f8a Mon Sep 17 00:00:00 2001
From: coulbeck <coulbeck@localhost>
Date: Fri, 09 Feb 2007 20:33:01 +0000
Subject: [PATCH] Minor synchronization code changes:
---
opendj-sdk/opends/src/server/org/opends/server/synchronization/plugin/AttrInfo.java | 32 +++++++++++++++++++++++++-------
1 files changed, 25 insertions(+), 7 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/synchronization/plugin/AttrInfo.java b/opendj-sdk/opends/src/server/org/opends/server/synchronization/plugin/AttrInfo.java
index 1f899de..90c7d91 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/synchronization/plugin/AttrInfo.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/synchronization/plugin/AttrInfo.java
@@ -37,7 +37,7 @@
* This classes is used to store historical information.
* One object of this type is created for each attribute that was changed in
* the entry.
- * It allows to record the last time a givene value was added, the last
+ * It allows to record the last time a given value was added, the last
* time a given value was deleted and the last time the whole attribute was
* deleted.
*/
@@ -130,8 +130,14 @@
{
if (this.valuesInfo != null)
this.valuesInfo.clear();
- deleteTime = CN;
- lastUpdateTime = CN;
+ if (CN.newer(deleteTime))
+ {
+ deleteTime = CN;
+ }
+ if (CN.newer(lastUpdateTime))
+ {
+ lastUpdateTime = CN;
+ }
}
/**
@@ -144,7 +150,10 @@
ValueInfo info = new ValueInfo(val, null, CN);
this.valuesInfo.remove(info);
this.valuesInfo.add(info);
- lastUpdateTime = CN;
+ if (CN.newer(lastUpdateTime))
+ {
+ lastUpdateTime = CN;
+ }
}
/**
@@ -160,7 +169,10 @@
ValueInfo info = new ValueInfo(val, null, CN);
this.valuesInfo.remove(info);
this.valuesInfo.add(info);
- lastUpdateTime = CN;
+ if (CN.newer(lastUpdateTime))
+ {
+ lastUpdateTime = CN;
+ }
}
}
@@ -175,7 +187,10 @@
ValueInfo info = new ValueInfo(val, CN, null);
this.valuesInfo.remove(info);
valuesInfo.add(info);
- lastUpdateTime = CN;
+ if (CN.newer(lastUpdateTime))
+ {
+ lastUpdateTime = CN;
+ }
}
/**
@@ -192,7 +207,10 @@
ValueInfo info = new ValueInfo(val, CN, null);
this.valuesInfo.remove(info);
valuesInfo.add(info);
- lastUpdateTime = CN;
+ if (CN.newer(lastUpdateTime))
+ {
+ lastUpdateTime = CN;
+ }
}
}
--
Gitblit v1.10.0