Set proper count value for account stores (#4797)

* set count values for store accounts

* Use AppendVecId type
This commit is contained in:
Sathish
2019-06-25 07:21:45 -07:00
committed by Michael Vines
parent 74a06e4230
commit 9e7f618cff
5 changed files with 50 additions and 35 deletions

View File

@@ -325,6 +325,7 @@ impl Serialize for AppendVec {
+ std::mem::size_of::<usize>() as u64;
let mut buf = vec![0u8; len as usize];
let mut wr = Cursor::new(&mut buf[..]);
self.map.flush().map_err(Error::custom)?;
serialize_into(&mut wr, &self.path).map_err(Error::custom)?;
serialize_into(&mut wr, &(self.current_len.load(Ordering::Relaxed) as u64))
.map_err(Error::custom)?;