]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Revert parse() call to hopefully a faster convention.
authorJesse F. Williamson <jfw@ibm.com>
Thu, 12 Feb 2026 19:22:15 +0000 (11:22 -0800)
committerJesse F. Williamson <jfw@ibm.com>
Thu, 12 Feb 2026 19:22:15 +0000 (11:22 -0800)
Avoid what's in effect a redundant strlen().

Signed-off-by: Jesse F. Williamson <jfw@ibm.com>
src/common/ceph_json.h

index ef7578a3d22cb6757309b779023da8ea962df6e5..2452ef6b208b61295fa82765c9b672b22ab7bcc8 100644 (file)
@@ -306,8 +306,7 @@ public:
   }
 
   bool parse(ceph::buffer::list& bl) {
-       // JFW: return parse(bl.c_str(), bl.length());
-       return parse(bl.to_str());
+       return parse(bl.c_str(), bl.length());
   }
 
   [[deprecated("this may not be reliable")]] bool parse_file(const std::filesystem::path file_name);