Patch for rados tool to allow listomapvals to list all k/v pairs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Current code only lists first 512 k/v pairs, attached patch.

-- 
Bj(/)rnar
diff --git a/src/tools/rados/rados.cc b/src/tools/rados/rados.cc
index a5a921c..bbd7ba2 100644
--- a/src/tools/rados/rados.cc
+++ b/src/tools/rados/rados.cc
@@ -1760,6 +1760,7 @@ static int rados_tool_common(const std::map < std::string, std
             << cpp_strerror(ret) << std::endl;
        return 1;
       }
+      ret = values.size();
       for (map<string, bufferlist>::const_iterator it = values.begin();
           it != values.end(); ++it) {
        // dump key in hex if it contains nonprintable characters
@@ -1771,6 +1772,7 @@ static int rados_tool_common(const std::map < std::string, std
          keybl.hexdump(cout);
        } else {
          cout << it->first;
+      last_read = it->first;
        }
        cout << std::endl;
        cout << "value: (" << it->second.length() << " bytes) :\n";

[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux