]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: Add usage comment to librbd::RBD::AioCompletion
authorAdam Crume <adamcrume@gmail.com>
Mon, 21 Jul 2014 17:37:29 +0000 (10:37 -0700)
committerSage Weil <sage@redhat.com>
Thu, 21 Aug 2014 17:57:30 +0000 (10:57 -0700)
Signed-off-by: Adam Crume <adamcrume@gmail.com>
src/include/rbd/librbd.hpp

index 7107f584825326cbb9e9849e3b7066e9f0fc8271..f85e090e76526cc97a934f04037a91e11a28ad90 100644 (file)
@@ -60,6 +60,9 @@ public:
   RBD();
   ~RBD();
 
+  // This must be dynamically allocated with new, and
+  // must be released with release().
+  // Do not use delete.
   struct AioCompletion {
     void *pc;
     AioCompletion(void *cb_arg, callback_t complete_cb);