OPTION(newstore_wal_threads, OPT_INT, 4)
OPTION(newstore_wal_thread_timeout, OPT_INT, 30)
OPTION(newstore_wal_thread_suicide_timeout, OPT_INT, 120)
+OPTION(newstore_sync_append_min, OPT_INT, 65536) // only do sync append for large ios
OPTION(newstore_max_ops, OPT_U64, 512)
OPTION(newstore_max_bytes, OPT_U64, 64*1024*1024)
OPTION(newstore_wal_max_ops, OPT_U64, 512)
}
}
- if (o->onode.size <= offset ||
- o->onode.size == 0 ||
+ if (((o->onode.size <= offset || o->onode.size == 0) &&
+ length >= g_conf->newstore_sync_append_min) ||
+
o->onode.data_map.empty()) {
uint64_t x_offset;
if (o->onode.data_map.empty()) {