]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_file: explain semantics of RGWFileHandle::commit 10745/head
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 23 Aug 2016 20:50:42 +0000 (16:50 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Tue, 23 Aug 2016 20:50:42 +0000 (16:50 -0400)
Add a comment explaining why the method currently returns 0
unconditionally.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.h

index d5ccc3a3ecb4adccea0cfc9861a4c72388b0ac48..ddc7361e5fd6416cf77249a126963660116084e3 100644 (file)
@@ -518,6 +518,12 @@ namespace rgw {
     int write(uint64_t off, size_t len, size_t *nbytes, void *buffer);
 
     int commit(uint64_t offset, uint64_t length, uint32_t flags) {
+      /* NFS3 and NFSv4 COMMIT implementation
+       * the current atomic update strategy doesn't actually permit
+       * clients to read-stable until either CLOSE (NFSv4+) or the
+       * expiration of the active write timer (NFS3).  In the
+       * interim, the client may send an arbitrary number of COMMIT
+       * operations which must return a success result */
       return 0;
     }