commit | 9f6c41e1871b687d2d064ec2f9e6975fd8dc04f7 | [log] [tgz] |
---|---|---|
author | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Thu Jan 17 14:18:14 2013 -0800 |
committer | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Thu Jan 17 14:18:14 2013 -0800 |
tree | 6d2fc8484ea46b4af14edd7694436ea802ce1a2b | |
parent | 4e1c1d96d0ea0949a0ec5291b93fb55774559b30 [diff] [blame] |
fix bug about yp
diff --git a/src/sync-core.cc b/src/sync-core.cc index 164296a..a0d7573 100644 --- a/src/sync-core.cc +++ b/src/sync-core.cc
@@ -117,6 +117,10 @@ m_log->UpdateDeviceSeqNo(m_userName, seqno); // choose to update locator everytime m_log->UpdateLocator(m_userName, m_localPrefix); + { + WriteLock lock(m_ypMutex); + m_yp[m_userName] = m_localPrefix; + } HashPtr oldHash = m_rootHash; m_rootHash = m_log->RememberStateInStateLog();