Skip to content

librados: Add RADOS locks to the C/C++ API

Filippos Giannakos ceph-devel 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v12 patches 4 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2Add RADOS lock mechanism to the librados C/C++ API.src/Makefile.am src/include/rados/librados.h src/include/rados/librados.hpp +1 more+314 -20 replies
2/2Add RADOS API lock testssrc/Makefile.am src/test/librados/lock.cc+307 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH 0/2 v2] librados: Add RADOS locks to the C/C++ API

Hi team,

This set of patches export the RADOS advisory locking functionality to the C/C++ API.
They have been refactored to incorporate Josh suggestions from his review:
* Always set tag to "" for exclusive lock
* Add duration argument to lock_{exclusive, shared}
* Add lock flags to librados.h
* Return -EINVAL on client parsing error
* Remove unneeded std::string convertions
* Typos/style fixes

Kind Regards,
Filippos

Filippos Giannakos (2):
Add RADOS lock mechanism to the librados C/C++ API. Add RADOS API lock tests

 src/Makefile.am                |   11 +-
 src/include/rados/librados.h   |  102 +++++++++++++-
 src/include/rados/librados.hpp |   29 ++++
 src/librados/librados.cc       |  180 ++++++++++++++++++++++++
 src/test/librados/lock.cc      |  301 ++++++++++++++++++++++++++++++++++++++++
 5 files changed, 621 insertions(+), 2 deletions(-)
 create mode 100644 src/test/librados/lock.cc
Signature · 1 line
1.7.10.4