mirror of
https://github.com/Tencent/MMKV.git
synced 2026-10-17 04:30:56 +08:00
fix MM_SYNC typo #597
This commit is contained in:
+1
-1
@@ -102,7 +102,7 @@ bool MemoryFile::truncate(size_t size) {
|
||||
|
||||
bool MemoryFile::msync(SyncFlag syncFlag) {
|
||||
if (m_ptr) {
|
||||
auto ret = ::msync(m_ptr, m_size, syncFlag ? MMKV_SYNC : MMKV_ASYNC);
|
||||
auto ret = ::msync(m_ptr, m_size, syncFlag ? MS_SYNC : MS_ASYNC);
|
||||
if (ret == 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user