diff options
Diffstat (limited to 'source3/smbd/smb2_flush.c')
-rw-r--r-- | source3/smbd/smb2_flush.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/source3/smbd/smb2_flush.c b/source3/smbd/smb2_flush.c index 470a8df4944..86d5bbc58f0 100644 --- a/source3/smbd/smb2_flush.c +++ b/source3/smbd/smb2_flush.c @@ -125,7 +125,6 @@ static struct tevent_req *smbd_smb2_flush_send(TALLOC_CTX *mem_ctx, struct tevent_req *subreq; struct smbd_smb2_flush_state *state; struct smb_request *smbreq; - int ret; req = tevent_req_create(mem_ctx, &state, struct smbd_smb2_flush_state); @@ -187,12 +186,6 @@ static struct tevent_req *smbd_smb2_flush_send(TALLOC_CTX *mem_ctx, return tevent_req_post(req, ev); } - ret = flush_write_cache(fsp, SAMBA_SYNC_FLUSH); - if (ret == -1) { - tevent_req_nterror(req, map_nt_error_from_unix(errno)); - return tevent_req_post(req, ev); - } - subreq = SMB_VFS_FSYNC_SEND(state, ev, fsp); if (tevent_req_nomem(subreq, req)) { return tevent_req_post(req, ev); |