]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rados: allow listomapvals to list all k/v pairs
authorBjørnar Ness <bjornar.ness@gmail.com>
Sat, 28 Dec 2013 13:59:00 +0000 (05:59 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Mon, 30 Dec 2013 21:36:31 +0000 (13:36 -0800)
Current code only lists first 512 k/v pairs.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/tools/rados/rados.cc

index a5a921c8f23a5309be337f8336043d9805cf7f84..07bd94951f16950a06b4b3e10cf1c36dea17bea7 100644 (file)
@@ -1760,8 +1760,10 @@ static int rados_tool_common(const std::map < std::string, std::string > &opts,
             << cpp_strerror(ret) << std::endl;
        return 1;
       }
+      ret = values.size();
       for (map<string, bufferlist>::const_iterator it = values.begin();
           it != values.end(); ++it) {
+       last_read = it->first;
        // dump key in hex if it contains nonprintable characters
        if (std::count_if(it->first.begin(), it->first.end(),
            (int (*)(int))isprint) < (int)it->first.length()) {