提交 cfe7abce 编写于 作者: S Shengliang Guan

refactor(cluster): make sdb ver atomic

上级 1f2b8ae1
...@@ -162,7 +162,4 @@ static int32_t sdbCreateDir(SSdb *pSdb) { ...@@ -162,7 +162,4 @@ static int32_t sdbCreateDir(SSdb *pSdb) {
return 0; return 0;
} }
int64_t sdbUpdateVer(SSdb *pSdb, int32_t val) { int64_t sdbUpdateVer(SSdb *pSdb, int32_t val) { return atomic_add_fetch_64(&pSdb->curVer, val); }
pSdb->curVer += val; \ No newline at end of file
return pSdb->curVer;
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册