From d4697bcaf7c09ac0847f4e4cd1b6f87ffb5db13b Mon Sep 17 00:00:00 2001 From: Adam Crume Date: Mon, 21 Jul 2014 10:37:29 -0700 Subject: [PATCH] doc: Add usage comment to librbd::RBD::AioCompletion Signed-off-by: Adam Crume --- src/include/rbd/librbd.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/include/rbd/librbd.hpp b/src/include/rbd/librbd.hpp index 7107f58482532..f85e090e76526 100644 --- a/src/include/rbd/librbd.hpp +++ b/src/include/rbd/librbd.hpp @@ -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); -- 2.39.5