private void initVersionsBytes(DiskEntry entry) throws IOException { // persist entry version, region version and memberId // The versions in entry are initialized to 0. So we will not persist the 3 // types of data if region version is 0. // TODO: This method will be called 2 times, one for persisting into crf // another for persisting into krf, since we did not save the byte arrary // for the verstion tag. if (EntryBits.isWithVersions(this.userBits)) { VersionStamp stamp = entry.getVersionStamp(); assert (stamp != null); this.versionsBytes = serializeVersionTag(stamp); this.size += this.versionsBytes.length; } else { // persist last modified time for no-versions case this.userBits = EntryBits.setHasLastModifiedTime(this.userBits); initLastModifiedTime(entry.getLastModified()); } }
oplogKeyId, valueOffset, tag, de.getLastModified(), currentTime);
entry.setLastModified(mgr, de.getLastModified());
entry.setLastModified(mgr, de.getLastModified());