]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PaxosService: drop unused {get,set,put}_version(prefix, a, bl)
authorSage Weil <sage@inktank.com>
Tue, 18 Jun 2013 01:02:30 +0000 (18:02 -0700)
committerSage Weil <sage@inktank.com>
Tue, 25 Jun 2013 04:07:26 +0000 (21:07 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/PaxosService.cc
src/mon/PaxosService.h

index 68131affb1f99e4fba50d654c9c0f59e644a6f77..19d47fc316d9b9504199abdfa92181cd374eb385 100644 (file)
@@ -318,25 +318,6 @@ void PaxosService::shutdown()
   finish_contexts(g_ceph_context, waiting_for_finished_proposal, -EAGAIN);
 }
 
-void PaxosService::put_version(MonitorDBStore::Transaction *t,
-                              const string& prefix, version_t ver,
-                              bufferlist& bl)
-{
-  ostringstream os;
-  os << ver;
-  string key = mon->store->combine_strings(prefix, os.str());
-  t->put(get_service_name(), key, bl);
-}
-
-int PaxosService::get_version(const string& prefix, version_t ver,
-                             bufferlist& bl)
-{
-  ostringstream os;
-  os << ver;
-  string key = mon->store->combine_strings(prefix, os.str());
-  return mon->store->get(get_service_name(), key, bl);
-}
-
 void PaxosService::trim(MonitorDBStore::Transaction *t,
                        version_t from, version_t to)
 {
index 566216a4d756d12e9d7621ddbb1f8e96ccd90424..55547643444306c0f6a1b5c7cd98835bdc836350 100644 (file)
@@ -787,30 +787,6 @@ public:
                   bufferlist& bl) {
     t->put(get_service_name(), ver, bl);
   }
-  /**
-   * Put the contents of @p bl into version @p ver (prefixed with @p prefix)
-   *
-   * @param t A transaction to which we will add this put operation
-   * @param prefix The version's prefix
-   * @param ver The version to which we will add the value
-   * @param bl A bufferlist containing the version's value
-   */
-  void put_version(MonitorDBStore::Transaction *t, 
-                  const string& prefix, version_t ver, bufferlist& bl);
-  /**
-   * Put a version number into a key composed by @p prefix and @p name
-   * combined.
-   *
-   * @param t The transaction to which we will add this put operation
-   * @param prefix The key's prefix
-   * @param name The key's suffix
-   * @param ver A version number
-   */
-  void put_version(MonitorDBStore::Transaction *t,
-                  const string& prefix, const string& name, version_t ver) {
-    string key = mon->store->combine_strings(prefix, name);
-    t->put(get_service_name(), key, ver);
-  }
   /**
    * Put the contents of @p bl into a full version key for this service, that
    * will be created with @p ver in mind.
@@ -847,20 +823,6 @@ public:
                 const string& key, bufferlist& bl) {
     t->put(get_service_name(), key, bl);
   }
-  /**
-   * Put the contents of @p bl into a key composed of @p prefix and @p name
-   * concatenated.
-   *
-   * @param t A transaction to which we will add this put operation
-   * @param prefix The key's prefix
-   * @param name The key's suffix
-   * @param bl A bufferlist containing the value
-   */
-  void put_value(MonitorDBStore::Transaction *t,
-                const string& prefix, const string& name, bufferlist& bl) {
-    string key = mon->store->combine_strings(prefix, name);
-    t->put(get_service_name(), key, bl);
-  }
 
   /**
    * @}
@@ -916,15 +878,6 @@ public:
   int get_version(version_t ver, bufferlist& bl) {
     return mon->store->get(get_service_name(), ver, bl);
   }
-  /**
-   * Get the contents of a given version @p ver with a given prefix @p prefix
-   *
-   * @param prefix The intended prefix
-   * @param ver The version being obtained
-   * @param bl The bufferlist to be populated
-   * @return 0 on success; <0 otherwise
-   */
-  int get_version(const string& prefix, version_t ver, bufferlist& bl);
   /**
    * Get the contents of a given full version of this service.
    *