summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/raw
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2006-11-08 00:27:19 +0000
committerBrian S. O'Neill <bronee@gmail.com>2006-11-08 00:27:19 +0000
commit50cc4231b52fd363bd8ca6d840cb8366e4f38d44 (patch)
tree2785f509a2109caba6f722f812b5af6f01c41c4c /src/main/java/com/amazon/carbonado/raw
parent2f14a36ed762b2287bab1c97fdb4cbee118e2921 (diff)
Tests and fixes for corruption repair.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/raw')
-rw-r--r--src/main/java/com/amazon/carbonado/raw/RawStorableGenerator.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/amazon/carbonado/raw/RawStorableGenerator.java b/src/main/java/com/amazon/carbonado/raw/RawStorableGenerator.java
index e48aef8..880bb7c 100644
--- a/src/main/java/com/amazon/carbonado/raw/RawStorableGenerator.java
+++ b/src/main/java/com/amazon/carbonado/raw/RawStorableGenerator.java
@@ -258,7 +258,8 @@ public class RawStorableGenerator {
for (StorableProperty property : properties) {
orMask |= StorableGenerator.PROPERTY_STATE_CLEAN << ((ordinal & 0xf) * 2);
- andMask &= StorableGenerator.PROPERTY_STATE_MASK << ((ordinal & 0xf) * 2);
+ andMask &=
+ ~(StorableGenerator.PROPERTY_STATE_MASK << ((ordinal & 0xf) * 2));
ordinal++;
if ((ordinal & 0xf) == 0 || ordinal >= count) {