Force sync after every write
This commit is contained in:
@@ -470,8 +470,10 @@ void client_reply_to_write(struct client *client,
|
|||||||
request.len);
|
request.len);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only flush if FUA is set
|
// Only flush if FUA is set -- overridden for now to force flush after each
|
||||||
if (request.flags & CMD_FLAG_FUA) {
|
// write.
|
||||||
|
// if (request.flags & CMD_FLAG_FUA) {
|
||||||
|
if (1) {
|
||||||
/* multiple of page size */
|
/* multiple of page size */
|
||||||
uint64_t from_rounded =
|
uint64_t from_rounded =
|
||||||
request.from & (~(sysconf(_SC_PAGE_SIZE) - 1));
|
request.from & (~(sysconf(_SC_PAGE_SIZE) - 1));
|
||||||
|
Reference in New Issue
Block a user