]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Removed extra semicolons 1795/head
authorDaniel J. Hofmann <daniel@trvx.org>
Fri, 9 May 2014 13:07:15 +0000 (15:07 +0200)
committerDaniel J. Hofmann <daniel@trvx.org>
Fri, 9 May 2014 13:07:15 +0000 (15:07 +0200)
Signed-off-by: Daniel J. Hofmann <daniel@trvx.org>
64 files changed:
src/auth/Auth.h
src/auth/Crypto.h
src/auth/cephx/CephxKeyServer.h
src/auth/cephx/CephxProtocol.h
src/cls/rbd/cls_rbd.cc
src/cls/replica_log/cls_replica_log_types.h
src/cls/rgw/cls_rgw_client.cc
src/common/BackTrace.cc
src/common/TextTable.h
src/common/WorkQueue.h
src/common/admin_socket.h
src/common/buffer.cc
src/common/ceph_context.cc
src/common/ceph_json.cc
src/common/ceph_json.h
src/common/entity_name.h
src/common/map_cacher.hpp
src/include/types.h
src/key_value_store/key_value_structure.h
src/mds/CDentry.h
src/mds/CInode.h
src/mds/Capability.h
src/mds/MDS.cc
src/mds/mds_table_types.h
src/mds/mdstypes.h
src/mds/snap.h
src/messages/MPGStats.h
src/mon/AuthMonitor.h
src/mon/Monitor.cc
src/mon/Monitor.h
src/mon/MonitorDBStore.h
src/mon/Session.h
src/mon/mon_types.h
src/os/BtrfsFileStoreBackend.h
src/os/FileStore.h
src/os/GenericFileStoreBackend.h
src/os/KeyValueDB.h
src/os/XfsFileStoreBackend.h
src/osd/ECBackend.cc
src/osd/ECUtil.h
src/osd/HitSet.h
src/osd/OSD.cc
src/osd/OSD.h
src/osd/PG.cc
src/osd/PG.h
src/osd/ReplicatedPG.h
src/osd/SnapMapper.cc
src/osdc/ObjectCacher.h
src/rgw/rgw_bucket.h
src/rgw/rgw_common.h
src/rgw/rgw_keystone.h
src/rgw/rgw_main.cc
src/rgw/rgw_metadata.cc
src/rgw/rgw_multi_del.h
src/rgw/rgw_quota.cc
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h
src/rgw/rgw_resolve.cc
src/rgw/rgw_rest_bucket.cc
src/rgw/rgw_rest_usage.cc
src/rgw/rgw_rest_user.cc
src/rgw/rgw_xml.cc
src/test/encoding/types.h
src/test/librados/TestCase.h

index 0adc9009221e2ab5ea0466ec3c9dad0e85af844d..2d89a033e5ce8d1e58c55035d90fcc82675419cd 100644 (file)
@@ -164,7 +164,7 @@ struct ExpiringCryptoKey {
     ::decode(expiration, bl);
   }
 };
-WRITE_CLASS_ENCODER(ExpiringCryptoKey);
+WRITE_CLASS_ENCODER(ExpiringCryptoKey)
 
 static inline ostream& operator<<(ostream& out, const ExpiringCryptoKey& c)
 {
@@ -226,7 +226,7 @@ struct RotatingSecrets {
 
   void dump();
 };
-WRITE_CLASS_ENCODER(RotatingSecrets);
+WRITE_CLASS_ENCODER(RotatingSecrets)
 
 
 
index f0fc97b5934508669bdd61b4aa094251a77388b6..c8112220aa6a32b28fec602f2c8e431307fdf9e5 100644 (file)
@@ -99,7 +99,7 @@ public:
 
   void to_str(std::string& s) const;
 };
-WRITE_CLASS_ENCODER(CryptoKey);
+WRITE_CLASS_ENCODER(CryptoKey)
 
 static inline ostream& operator<<(ostream& out, const CryptoKey& k)
 {
index bc30fef640b163cac98703fd4d7eafba780c304f..250331d7116765fb6e9e8cbd19d990705e3db7bb 100644 (file)
@@ -180,8 +180,8 @@ struct KeyServerData {
   }
 
 };
-WRITE_CLASS_ENCODER(KeyServerData);
-WRITE_CLASS_ENCODER(KeyServerData::Incremental);
+WRITE_CLASS_ENCODER(KeyServerData)
+WRITE_CLASS_ENCODER(KeyServerData::Incremental)
 
 
 
@@ -302,7 +302,7 @@ public:
   map<EntityName, EntityAuth>::iterator secrets_end()
   { return data.secrets_end(); }
 };
-WRITE_CLASS_ENCODER(KeyServer);
+WRITE_CLASS_ENCODER(KeyServer)
 
 
 #endif
index 8a3e09462e34887e7d8d9f2e328868afc0f9f564..d72a23d87d61fcf5d079c5068d6c2b22ae6ccffd 100644 (file)
@@ -111,7 +111,7 @@ struct CephXServerChallenge {
     ::decode(server_challenge, bl);
   }
 };
-WRITE_CLASS_ENCODER(CephXServerChallenge);
+WRITE_CLASS_ENCODER(CephXServerChallenge)
 
 
 // request/reply headers, for subsequent exchanges.
@@ -126,7 +126,7 @@ struct CephXRequestHeader {
     ::decode(request_type, bl);
   }
 };
-WRITE_CLASS_ENCODER(CephXRequestHeader);
+WRITE_CLASS_ENCODER(CephXRequestHeader)
 
 struct CephXResponseHeader {
   uint16_t request_type;
@@ -141,7 +141,7 @@ struct CephXResponseHeader {
     ::decode(status, bl);
   }
 };
-WRITE_CLASS_ENCODER(CephXResponseHeader);
+WRITE_CLASS_ENCODER(CephXResponseHeader)
 
 struct CephXTicketBlob {
   uint64_t secret_id;
@@ -163,7 +163,7 @@ struct CephXTicketBlob {
     ::decode(blob, bl);
   }
 };
-WRITE_CLASS_ENCODER(CephXTicketBlob);
+WRITE_CLASS_ENCODER(CephXTicketBlob)
 
 // client -> server response to challenge
 struct CephXAuthenticate {
@@ -248,7 +248,7 @@ struct CephXServiceTicketRequest {
     ::decode(keys, bl);
   }
 };
-WRITE_CLASS_ENCODER(CephXServiceTicketRequest);
+WRITE_CLASS_ENCODER(CephXServiceTicketRequest)
 
 
 /*
@@ -268,7 +268,7 @@ struct CephXAuthorizeReply {
     ::decode(nonce_plus_one, bl);
   }
 };
-WRITE_CLASS_ENCODER(CephXAuthorizeReply);
+WRITE_CLASS_ENCODER(CephXAuthorizeReply)
 
 
 struct CephXAuthorizer : public AuthAuthorizer {
@@ -365,7 +365,7 @@ struct CephXServiceTicket {
     ::decode(validity, bl);
   }
 };
-WRITE_CLASS_ENCODER(CephXServiceTicket);
+WRITE_CLASS_ENCODER(CephXServiceTicket)
 
 /* B */
 struct CephXServiceTicketInfo {
@@ -385,7 +385,7 @@ struct CephXServiceTicketInfo {
     ::decode(session_key, bl);
   }
 };
-WRITE_CLASS_ENCODER(CephXServiceTicketInfo);
+WRITE_CLASS_ENCODER(CephXServiceTicketInfo)
 
 struct CephXAuthorize {
   uint64_t nonce;
@@ -400,7 +400,7 @@ struct CephXAuthorize {
     ::decode(nonce, bl);
   }
 };
-WRITE_CLASS_ENCODER(CephXAuthorize);
+WRITE_CLASS_ENCODER(CephXAuthorize)
 
 /*
  * Decode an extract ticket
index 709036c754b6174c1934f98231326a23d466fec2..55f5c74704374e9198e0284d969eca8b565d1c3d 100644 (file)
@@ -1423,7 +1423,7 @@ int get_id(cls_method_context_t hctx, bufferlist *in, bufferlist *out)
 
   ::encode(id, *out);
   return 0;
-};
+}
 
 /**
  * Set the id of an image. The object must already exist.
index 6056f8e4468b91610aec321f1216bf44d3314e06..b1cfe8e836bcda3e8970dd720972ddfbbef96eac 100644 (file)
@@ -189,6 +189,6 @@ public:
   void decode_json(JSONObj *obj);
   static void generate_test_instances(std::list<cls_replica_log_bound*>& ls);
 };
-WRITE_CLASS_ENCODER(cls_replica_log_bound);
+WRITE_CLASS_ENCODER(cls_replica_log_bound)
 
 #endif /* CLS_REPLICA_LOG_TYPES_H_ */
index a26d0afdf4c6ad316e76c7d92f94b417eb1e22e2..87d6127ae58c9c34621fc92687405d2f654d22d6 100644 (file)
@@ -175,7 +175,7 @@ public:
     }
 
     ret_ctx->handle_response(r, ret.dir.header);
-  };
+  }
 };
 
 int cls_rgw_get_dir_header_async(IoCtx& io_ctx, string& oid, RGWGetDirHeader_CB *ctx)
index 886ed6a16d4b671513f16039e300bde8905def02..208c5de8831436ea2d6dbd7a60e15489d2ec019b 100644 (file)
@@ -64,6 +64,6 @@ void BackTrace::print(std::ostream& out)
     }
     free(function);
   }
-};
+}
 
 }
index 9f8e8ea93845cbbcf3f3ee7399d94cacee7b4ab4..282bf733ba5e5e06648e011e85a357e0130012e7 100644 (file)
@@ -42,7 +42,7 @@ private:
     Align hd_align;
     Align col_align;
 
-    TextTableColumn() {};
+    TextTableColumn() {}
     TextTableColumn(std::string h, int w, Align ha, Align ca) :
                    heading(h), width(w), hd_align(ha), col_align(ca) { }
     ~TextTableColumn() {}
index 794b577a71dabc828071f4999ec0fc16bb61f7e2..71cf89605e7c466de91a7ca444803f7edadbd8d5 100644 (file)
@@ -400,7 +400,7 @@ public:
   
   void _enqueue(GenContext<ThreadPool::TPHandle&> *c) {
     _queue.push_back(c);
-  };
+  }
   void _enqueue_front(GenContext<ThreadPool::TPHandle&> *c) {
     _queue.push_front(c);
   }
index 3bc8483434818e851ef142db87eeee983799c74f..20e3f9b85f66ffb3db8ff1f4c774de016bd1af44 100644 (file)
@@ -32,7 +32,7 @@ class AdminSocketHook {
 public:
   virtual bool call(std::string command, cmdmap_t &cmdmap, std::string format,
                    bufferlist& out) = 0;
-  virtual ~AdminSocketHook() {};
+  virtual ~AdminSocketHook() {}
 };
 
 class AdminSocket : public Thread
index e1709bcaa4be8a971be550d64cbeecab3c57a10e..bfafa31f7212fa283a2aed80f74b914b597f5d81 100644 (file)
@@ -134,7 +134,7 @@ static uint32_t simple_spinlock_t buffer_debug_lock = SIMPLE_SPINLOCK_INITIALIZE
       : data(c), len(l), nref(0),
        crc_lock("buffer::raw::crc_lock", false, false)
     { }
-    virtual ~raw() {};
+    virtual ~raw() {}
 
     // no copying.
     raw(const raw &other);
@@ -1433,7 +1433,7 @@ void buffer::list::rebuild_page_aligned()
     // splice in *replace (implement me later?)
     
     last_p = begin();  // just in case we were in the removed region.
-  };
+  }
 
   void buffer::list::write(int off, int len, std::ostream& out) const
   {
index 4ebf79e82b9655052f4087058e8b1598dfc4ef4b..71b6fcb1aee58e07952581a94d3fedce5a20f7ba 100644 (file)
@@ -247,7 +247,7 @@ void CephContext::do_command(std::string command, cmdmap_t& cmdmap,
   delete f;
   lgeneric_dout(this, 1) << "do_command '" << command << "' '" << ss.str()
                         << "result is " << out->length() << " bytes" << dendl;
-};
+}
 
 
 CephContext::CephContext(uint32_t module_type_)
index a48e0636fcfcf8f9c5b101d6d6d946f1b7e8e115..d1d33a91c00797f279e18969c79c3cd477bae24d 100644 (file)
@@ -32,12 +32,12 @@ void JSONObjIter::operator++()
 {
   if (cur != last)
     ++cur;
-};
+}
 
 JSONObj *JSONObjIter::operator*()
 {
   return cur->second;
-};
+}
 
 // does not work, FIXME
 ostream& operator<<(ostream& out, JSONObj& obj) {
index 32f5dcfc6fed33b0e2afa40e97422188d95dcb34..5f8642dfa461e909743765050b666b2c372bdf59 100644 (file)
@@ -45,7 +45,7 @@ protected:
 
 public:
 
-  JSONObj() : parent(NULL){};
+  JSONObj() : parent(NULL){}
 
   virtual ~JSONObj();
 
index 550bf1dedc60ebe178b65afaf090d7732ac4361a..2949f1fa648582134dab2d7000e38be58e1b12df 100644 (file)
@@ -81,7 +81,7 @@ private:
 
 uint32_t str_to_ceph_entity_type(const char * str);
 
-WRITE_CLASS_ENCODER(EntityName);
+WRITE_CLASS_ENCODER(EntityName)
 
 WRITE_EQ_OPERATORS_2(EntityName, type, id)
 
index da79e8237b6c011235d8642461427862fc3ca7ef..101a0be96d927f4c596b004ca001f124cfc85926 100644 (file)
@@ -195,6 +195,6 @@ public:
     return 0;
   } ///< @return error value, 0 on success
 };
-}; // namespace
+} // namespace
 
 #endif
index ffb0202b2d17e45444052a3a2ed54b7034cc9cd4..5f9f25dba328871320c57fa14495669803941e28 100644 (file)
@@ -443,7 +443,7 @@ inline ostream& operator<<(ostream &oss, health_status_t status) {
       break;
   }
   return oss;
-};
+}
 #endif
 
 #endif
index ec02791017e81106cd5b887c051a0efd52d955ff..e5f16d2f6a051a304e6463ca490ccd0e3e676798 100644 (file)
@@ -57,7 +57,7 @@ public:
   virtual int suicide() = 0;
 
   ////////////////DESTRUCTOR/////////////////
-  virtual ~KeyValueStructure() {};
+  virtual ~KeyValueStructure() {}
 
   ////////////////UPDATERS///////////////////
 
index f1cec468c55c57cf61c7a525f5b8ddae3fa2f6ef..781e1d84f6dd33af443a9c73b9925075a49094f2 100644 (file)
@@ -88,7 +88,7 @@ public:
     case PIN_PURGING: return "purging";
     default: return generic_pin_name(p);
     }
-  };
+  }
 
   // -- wait --
   //static const int WAIT_LOCK_OFFSET = 8;
index 67a3b31d351b9e15eab01ba0eecefb0e53286fce..727d43ea7c41e74795b552a7e0f3df250d2582fc 100644 (file)
@@ -452,7 +452,7 @@ public:
     g_num_inoa++;
     state = 0;  
     if (auth) state_set(STATE_AUTH);
-  };
+  }
   ~CInode() {
     g_num_ino--;
     g_num_inos++;
index 3d976487161628315aa32e420edd31f39a92d1cc..ab5742bfc39c12da9d7010f06782fc0bde0b6def 100644 (file)
@@ -285,7 +285,7 @@ public:
     //check_rdcaps_list();
   }
 
-  void inc_last_seq() { last_sent++; };
+  void inc_last_seq() { last_sent++; }
   ceph_seq_t get_last_seq() { return last_sent; }
   ceph_seq_t get_last_issue() { return last_issue; }
 
index 81d6e7690082e50bbc3e0e44f8baa9b637c40088..183d4869933f7199b5f005d0c2e2f0823b0e0c0f 100644 (file)
@@ -2222,7 +2222,7 @@ bool MDS::ms_verify_authorizer(Connection *con, int peer_type,
   }
 
   return true;  // we made a decision (see is_valid)
-};
+}
 
 
 void MDS::ms_handle_accept(Connection *con)
index c08519a81b834a11df856da73fb84da42c849d21..dbcd1429bcecdfef59b6b0d641fab66d174d39cf 100644 (file)
@@ -55,7 +55,7 @@ inline const char *get_mdstableserver_opname(int op) {
   case TABLESERVER_OP_SERVER_READY: return "server_ready";
   default: assert(0); return 0;
   }
-};
+}
 
 enum {
   TABLE_OP_CREATE,
@@ -70,6 +70,6 @@ inline const char *get_mdstable_opname(int op) {
   case TABLE_OP_DESTROY: return "destroy";
   default: assert(0); return 0;
   }
-};
+}
 
 #endif
index e92ec74546cd88f2545a0fb9bc7c990588a13f50..6a08e9d20d5152e65e1276f6e16077b94bbfb852 100644 (file)
@@ -480,7 +480,7 @@ struct fnode_t {
   void decode(bufferlist::iterator& bl);
   void dump(Formatter *f) const;
   static void generate_test_instances(list<fnode_t*>& ls);
-  fnode_t() : version(0) {};
+  fnode_t() : version(0) {}
 };
 WRITE_CLASS_ENCODER(fnode_t)
 
index 0216e624bbaef43c92c5bfeb8ee4ba27f05a8315..58da25d9b0a55d794a989c05c25ca7832496d354 100644 (file)
@@ -89,6 +89,6 @@ struct sr_t {
   void dump(Formatter *f) const;
   static void generate_test_instances(list<sr_t*>& ls);
 };
-WRITE_CLASS_ENCODER(sr_t);
+WRITE_CLASS_ENCODER(sr_t)
 
 #endif
index 8c40c4e56ed3c385722641c275293a4431b08a2b..21ad1ed7d6d3207562488571b0ab2367839f16fe 100644 (file)
@@ -35,7 +35,7 @@ public:
   {}
 
 private:
-  ~MPGStats() {};
+  ~MPGStats() {}
 
 public:
   const char *get_type_name() const { return "pg_stats"; }
index 130616aedcd6d8b4310e5941230001bba555986c..ab95cb7a2abec2343f000c706966b9cf9d8c6ca7 100644 (file)
@@ -162,6 +162,6 @@ private:
 };
 
 
-WRITE_CLASS_ENCODER_FEATURES(AuthMonitor::Incremental);
+WRITE_CLASS_ENCODER_FEATURES(AuthMonitor::Incremental)
 
 #endif
index 09823276e42d6570d7fa3d01feebf0d8609fed3d..c8e6e5c1be5c8fa1c168b078100f90b02c1f9967 100644 (file)
@@ -4128,7 +4128,7 @@ bool Monitor::ms_verify_authorizer(Connection *con, int peer_type,
     isvalid = true;
   }
   return true;
-};
+}
 
 #undef dout_prefix
 #define dout_prefix *_dout
index 59292ec46a1d7879d89dda72f67c546411961445..2fb784229538eedaea4cc2905ca3f1d4860a7833 100644 (file)
@@ -957,6 +957,6 @@ struct MonCommand {
     DECODE_FINISH(bl);
   }
 };
-WRITE_CLASS_ENCODER(MonCommand);
+WRITE_CLASS_ENCODER(MonCommand)
 
 #endif
index 88c4f9366ef3c797ed4b8adadfba02c669e28ce8..b6e76066715677dbc1967a701f93b1a4a76f60df 100644 (file)
@@ -315,7 +315,7 @@ class MonitorDBStore
     }
     pair<string,string> get_last_key() {
       return last_key;
-    };
+    }
     virtual bool has_next_chunk() {
       return !done && _is_valid();
     }
@@ -571,7 +571,7 @@ class MonitorDBStore
 
 };
 
-WRITE_CLASS_ENCODER(MonitorDBStore::Op);
-WRITE_CLASS_ENCODER(MonitorDBStore::Transaction);
+WRITE_CLASS_ENCODER(MonitorDBStore::Op)
+WRITE_CLASS_ENCODER(MonitorDBStore::Transaction)
 
 #endif /* CEPH_MONITOR_DB_STORE_H */
index a5f67d9e2daceeaba0fe104c4c5df16b82982e5d..d6e0a998991183e38d73ec262d6f703be96aef4b 100644 (file)
@@ -34,7 +34,7 @@ struct Subscription {
   bool incremental_onetime;  // has CEPH_FEATURE_INCSUBOSDMAP
   
   Subscription(MonSession *s, const string& t) : session(s), type(t), type_item(this),
-                                                next(0), onetime(false), incremental_onetime(false) {};
+                                                next(0), onetime(false), incremental_onetime(false) {}
 };
 
 struct MonSession : public RefCountedObject {
index 0ae1aaf8d5e0f887c6c4b929ce10d8c3daf1a6d7..3967481fbf767a0c4f3c8d1f91fe1e205e461b20 100644 (file)
@@ -84,7 +84,7 @@ struct LevelDBStoreStats {
     DECODE_FINISH(p);
   }
 };
-WRITE_CLASS_ENCODER(LevelDBStoreStats);
+WRITE_CLASS_ENCODER(LevelDBStoreStats)
 
 // data stats
 
@@ -134,7 +134,7 @@ struct DataStats {
     DECODE_FINISH(p);
   }
 };
-WRITE_CLASS_ENCODER(DataStats);
+WRITE_CLASS_ENCODER(DataStats)
 
 struct ScrubResult {
   map<string,uint32_t> prefix_crc;  ///< prefix -> crc
@@ -173,7 +173,7 @@ struct ScrubResult {
     ls.back()->prefix_keys["bar"] = 456;
   }
 };
-WRITE_CLASS_ENCODER(ScrubResult);
+WRITE_CLASS_ENCODER(ScrubResult)
 
 static inline ostream& operator<<(ostream& out, const ScrubResult& r) {
   return out << "ScrubResult(keys " << r.prefix_keys << " crc " << r.prefix_crc << ")";
index f63a2a8b37ccc2397b7bc6a23bea2fc07c5700c6..cec976180d6e792f5ab4b633dc6d7c50cb8708cb 100644 (file)
@@ -30,7 +30,7 @@ private:
   bool m_filestore_btrfs_snap;
 public:
   BtrfsFileStoreBackend(FileStore *fs);
-  ~BtrfsFileStoreBackend() {};
+  ~BtrfsFileStoreBackend() {}
   int detect_features();
   bool can_checkpoint();
   int create_current();
index 47ca7e4e848a5b8e345ee41bb1ec49e6ded3c3ea..c9907295777e6a0aebe75c7947f1f1e1347362b8 100644 (file)
@@ -682,7 +682,7 @@ protected:
   }
 public:
   FileStoreBackend(FileStore *fs) : filestore(fs) {}
-  virtual ~FileStoreBackend() {};
+  virtual ~FileStoreBackend() {}
   virtual int detect_features() = 0;
   virtual int create_current() = 0;
   virtual bool can_checkpoint() = 0;
index 374e193eedf1a234eeedf0cac7a9239227595d2a..8302ed1c1be27346eede9bc13097a1b5cf73b40f 100644 (file)
@@ -26,11 +26,11 @@ private:
   bool m_filestore_fsync_flushes_journal_data;
 public:
   GenericFileStoreBackend(FileStore *fs);
-  virtual ~GenericFileStoreBackend() {};
+  virtual ~GenericFileStoreBackend() {}
 
   virtual int detect_features();
   virtual int create_current();
-  virtual bool can_checkpoint() { return false; };
+  virtual bool can_checkpoint() { return false; }
   virtual int list_checkpoints(list<string>& ls) { return 0; }
   virtual int create_checkpoint(const string& name, uint64_t *cid) { return -EOPNOTSUPP; }
   virtual int sync_checkpoint(uint64_t id) { return -EOPNOTSUPP; }
index c581aa52e2e75b601b1319fe35609fb6f1af7d70..84253418483abbc4b8d4bc08a8d1d1cba85ba5c2 100644 (file)
@@ -60,7 +60,7 @@ public:
       const string &prefix ///< [in] Prefix by which to remove keys
       ) = 0;
 
-    virtual ~TransactionImpl() {};
+    virtual ~TransactionImpl() {}
   };
   typedef ceph::shared_ptr< TransactionImpl > Transaction;
 
index cb19bf7bf3c2d7243add3885ed044d762f53dfa5..aaada403ccdb95df1480bbcef680f1c173693cb4 100644 (file)
@@ -25,7 +25,7 @@ private:
   int set_extsize(int fd, unsigned int val);
 public:
   XfsFileStoreBackend(FileStore *fs);
-  ~XfsFileStoreBackend() {};
+  ~XfsFileStoreBackend() {}
   int detect_features();
   int set_alloc_hint(int fd, uint64_t hint);
 };
index 3aae53bd6bc983cd6db0e64a6a9be374336114c9..5ca66cb4553e83edd75c88da3b7574084a4e4a35 100644 (file)
@@ -1095,7 +1095,7 @@ void ECBackend::filter_read_op(
       get_parent()->bless_gencontext(
        new FinishReadOp(this, op.tid)));
   }
-};
+}
 
 void ECBackend::check_recovery_sources(const OSDMapRef osdmap)
 {
index 74ed779d603c0354d32f6338892709cb07f0ddc2..08b7f87ed60a4dca3b537850ff6ec3a432b3abf1 100644 (file)
@@ -149,6 +149,6 @@ typedef ceph::shared_ptr<HashInfo> HashInfoRef;
 bool is_hinfo_key_string(const string &key);
 const string &get_hinfo_key();
 
-};
+}
 WRITE_CLASS_ENCODER(ECUtil::HashInfo)
 #endif
index 391dd63ee8fa3794fab32d326e054cd4189aebb5..dd83e6dd8e5ef4c98fe8cd41b8e48e794f467894 100644 (file)
@@ -167,8 +167,8 @@ public:
 private:
   void reset_to_type(impl_type_t type);
 };
-WRITE_CLASS_ENCODER(HitSet);
-WRITE_CLASS_ENCODER(HitSet::Params);
+WRITE_CLASS_ENCODER(HitSet)
+WRITE_CLASS_ENCODER(HitSet::Params)
 
 typedef boost::shared_ptr<HitSet> HitSetRef;
 
index 220eac652723e8ee5e3968b27b6cfe41257afa59..c4b9b34f3e8a242e9a1ce79f2419161c311f34e1 100644 (file)
@@ -5032,7 +5032,7 @@ bool OSD::ms_verify_authorizer(Connection *con, int peer_type,
     s->put();
   }
   return true;
-};
+}
 
 void OSD::do_waiters()
 {
index ec86ae3018f786e31675203346e2a6a4de22aff0..4517bea429fcecbba1f5122eae484a536896a1ea 100644 (file)
@@ -1236,7 +1236,7 @@ public:
     HeartbeatDispatcher(OSD *o) : Dispatcher(cct), osd(o) {}
     bool ms_dispatch(Message *m) {
       return osd->heartbeat_dispatch(m);
-    };
+    }
     bool ms_handle_reset(Connection *con) {
       return osd->heartbeat_reset(con);
     }
index 99553386d34cb7e624861b501dad0cb6b633a1a2..c4842570b1199f98932605deb0ec1458f24a5b48 100644 (file)
@@ -7182,7 +7182,7 @@ boost::statechart::result PG::RecoveryState::GetMissing::react(const MLogRec& lo
     }
   }
   return discard_event();
-};
+}
 
 boost::statechart::result PG::RecoveryState::GetMissing::react(const QueryState& q)
 {
index 6de3c5337fedac30edaee99b91c678b43c36d793..35069612556be83a63d45e9dafacad7dd279214d 100644 (file)
@@ -516,7 +516,7 @@ public:
     const char *get_state_name() { return state_name; }
     NamedState(CephContext *cct_, const char *state_name_)
       : state_name(state_name_),
-        enter_time(ceph_clock_now(cct_)) {};
+        enter_time(ceph_clock_now(cct_)) {}
     virtual ~NamedState() {}
   };
 
@@ -1138,7 +1138,7 @@ public:
     const hobject_t &hoid,
     const map<string, bufferptr> &attrs,
     pg_shard_t osd,
-    ostream &out) { return false; };
+    ostream &out) { return false; }
   void clear_scrub_reserved();
   void scrub_reserve_replicas();
   void scrub_unreserve_replicas();
index 208eadf1888a49aeef89e110f94f3b536f8d751c..b75e8539b9d57c1c5f1f48dd23633544cb627366 100644 (file)
@@ -191,7 +191,7 @@ public:
 
   public:
     /// Provide the final size of the copied object to the CopyCallback
-    virtual ~CopyCallback() {};
+    virtual ~CopyCallback() {}
   };
 
   friend class CopyFromCallback;
index 3a5e09884a8971a1837ca80a975282f01db4840a..ea25b4e2dc4e6207bba23029bb1327471b46bf66 100644 (file)
@@ -69,7 +69,7 @@ struct Mapping {
     DECODE_FINISH(bl);
   }
 };
-WRITE_CLASS_ENCODER(Mapping);
+WRITE_CLASS_ENCODER(Mapping)
 
 string SnapMapper::get_prefix(snapid_t snap)
 {
index d2aebe984cdf4865590eabf8143e7c7487c45a94..9d9ab3fe90c90e8b07dac6d9875d60be9690b33e 100644 (file)
@@ -415,17 +415,17 @@ class ObjectCacher {
     bh_set_state(bh2, bh1->get_state());
   }
   
-  void mark_missing(BufferHead *bh) { bh_set_state(bh, BufferHead::STATE_MISSING); };
-  void mark_clean(BufferHead *bh) { bh_set_state(bh, BufferHead::STATE_CLEAN); };
-  void mark_zero(BufferHead *bh) { bh_set_state(bh, BufferHead::STATE_ZERO); };
-  void mark_rx(BufferHead *bh) { bh_set_state(bh, BufferHead::STATE_RX); };
-  void mark_tx(BufferHead *bh) { bh_set_state(bh, BufferHead::STATE_TX); };
-  void mark_error(BufferHead *bh) { bh_set_state(bh, BufferHead::STATE_ERROR); };
+  void mark_missing(BufferHead *bh) { bh_set_state(bh, BufferHead::STATE_MISSING); }
+  void mark_clean(BufferHead *bh) { bh_set_state(bh, BufferHead::STATE_CLEAN); }
+  void mark_zero(BufferHead *bh) { bh_set_state(bh, BufferHead::STATE_ZERO); }
+  void mark_rx(BufferHead *bh) { bh_set_state(bh, BufferHead::STATE_RX); }
+  void mark_tx(BufferHead *bh) { bh_set_state(bh, BufferHead::STATE_TX); }
+  void mark_error(BufferHead *bh) { bh_set_state(bh, BufferHead::STATE_ERROR); }
   void mark_dirty(BufferHead *bh) { 
     bh_set_state(bh, BufferHead::STATE_DIRTY); 
     bh_lru_dirty.lru_touch(bh);
     //bh->set_dirty_stamp(ceph_clock_now(g_ceph_context));
-  };
+  }
 
   void bh_add(Object *ob, BufferHead *bh);
   void bh_remove(Object *ob, BufferHead *bh);
index fb764505f875ad23c4cce88df0206e6b071ab742..0cf4cd1e03af7188227efd21e9862bd0f06ea966 100644 (file)
@@ -147,12 +147,12 @@ struct RGWBucketAdminOpState {
     object_name = object_str;
   }
 
-  std::string& get_user_id() { return uid; };
-  std::string& get_user_display_name() { return display_name; };
-  std::string& get_bucket_name() { return bucket_name; };
-  std::string& get_object_name() { return object_name; };
+  std::string& get_user_id() { return uid; }
+  std::string& get_user_display_name() { return display_name; }
+  std::string& get_bucket_name() { return bucket_name; }
+  std::string& get_object_name() { return object_name; }
 
-  rgw_bucket& get_bucket() { return bucket; };
+  rgw_bucket& get_bucket() { return bucket; }
   void set_bucket(rgw_bucket& _bucket) {
     bucket = _bucket; 
     bucket_stored = true;
@@ -161,15 +161,15 @@ struct RGWBucketAdminOpState {
   void set_bucket_id(const string& bi) {
     bucket_id = bi;
   }
-  const string& get_bucket_id() { return bucket_id; };
+  const string& get_bucket_id() { return bucket_id; }
 
-  bool will_fetch_stats() { return stat_buckets; };
-  bool will_fix_index() { return fix_index; };
-  bool will_delete_children() { return delete_child_objects; };
-  bool will_check_objects() { return check_objects; };
-  bool is_user_op() { return !uid.empty(); };
-  bool is_system_op() { return uid.empty(); }
-  bool has_bucket_stored() { return bucket_stored; };
+  bool will_fetch_stats() { return stat_buckets; }
+  bool will_fix_index() { return fix_index; }
+  bool will_delete_children() { return delete_child_objects; }
+  bool will_check_objects() { return check_objects; }
+  bool is_user_op() { return !uid.empty(); }
+  bool is_system_op() { return uid.empty(); }
+  bool has_bucket_stored() { return bucket_stored; }
 
   RGWBucketAdminOpState() : list_buckets(false), stat_buckets(false), check_objects(false), 
                             fix_index(false), delete_child_objects(false),
@@ -218,7 +218,7 @@ public:
   int policy_bl_to_stream(bufferlist& bl, ostream& o);
   int get_policy(RGWBucketAdminOpState& op_state, ostream& o);
 
-  void clear_failure() { failure = false; };
+  void clear_failure() { failure = false; }
 };
 
 class RGWBucketAdminOp
index 4d7a118f2be78478e040b1da43ce92c81ec26059..9550072af7a0f6e08306c66e48b49da3becabd68 100644 (file)
@@ -354,7 +354,7 @@ struct RGWAccessKey {
   void decode_json(JSONObj *obj);
   void decode_json(JSONObj *obj, bool swift);
 };
-WRITE_CLASS_ENCODER(RGWAccessKey);
+WRITE_CLASS_ENCODER(RGWAccessKey)
 
 struct RGWSubUser {
   string name;
@@ -380,7 +380,7 @@ struct RGWSubUser {
 
   void decode_json(JSONObj *obj);
 };
-WRITE_CLASS_ENCODER(RGWSubUser);
+WRITE_CLASS_ENCODER(RGWSubUser)
 
 class RGWUserCaps
 {
@@ -410,7 +410,7 @@ public:
 
   void decode_json(JSONObj *obj);
 };
-WRITE_CLASS_ENCODER(RGWUserCaps);
+WRITE_CLASS_ENCODER(RGWUserCaps)
 
 void encode_json(const char *name, const obj_version& v, Formatter *f);
 void encode_json(const char *name, const RGWUserCaps& val, Formatter *f);
index 05199eef89d8a87155e7d514c48429efd6d311ce..9b2e03e2cac175df529e588d7aa7dc2a3d6959fa 100644 (file)
@@ -7,7 +7,7 @@ class KeystoneToken {
 public:
   class Metadata {
   public:
-    Metadata() : is_admin(false) { };
+    Metadata() : is_admin(false) { }
     bool is_admin;
     void decode_json(JSONObj *obj);
   };
@@ -31,10 +31,10 @@ public:
 
   class Token {
   public:
-    Token() : expires(0) { };
+    Token() : expires(0) { }
     class Tenant {
     public:
-      Tenant() : enabled(false) { };
+      Tenant() : enabled(false) { }
       string id;
       string name;
       string description;
index 0c63d5c375a83b00e5aa8b2e5ecee68947a29a68..d905344d549b27e04282d00edac4de691d39635f 100644 (file)
@@ -821,7 +821,7 @@ public:
   void *entry() {
     pprocess->run();
     return NULL;
-  };
+  }
 };
 
 class RGWProcessFrontend : public RGWFrontend {
index 4307ce9ce6b49879ffa3753765bc893a9d0fe0de..3e942fcf985c33cdf4ebd40fa24a9e38f3dab59c 100644 (file)
@@ -69,9 +69,9 @@ struct RGWMetadataLogData {
     encode_json("read_version", read_version, f);
     encode_json("write_version", write_version, f);
     encode_json("status", LogStatusDump(status), f);
-  };
+  }
 };
-WRITE_CLASS_ENCODER(RGWMetadataLogData);
+WRITE_CLASS_ENCODER(RGWMetadataLogData)
 
 
 int RGWMetadataLog::add_entry(RGWRados *store, RGWMetadataHandler *handler, const string& section, const string& key, bufferlist& bl) {
index c590a1ef16a518949e79d62ebc0f4d1682248f06..94182f8848db0d5cbbe5cc83f3e5f652e9ed556a 100644 (file)
@@ -13,7 +13,7 @@ public:
 
   std::vector<string> objects;
   bool quiet;
-  bool is_quiet() { return quiet; };
+  bool is_quiet() { return quiet; }
 };
 
 class RGWMultiDelQuiet : public XMLObj
index eab7e37acb72c59f2352999bee611edcbc172d82..38328c9a5a27948b46b623b4abfbdb70571a3162 100644 (file)
@@ -736,14 +736,14 @@ public:
   virtual void update_stats(const string& user, rgw_bucket& bucket, int obj_delta, uint64_t added_bytes, uint64_t removed_bytes) {
     bucket_stats_cache.adjust_stats(user, bucket, obj_delta, added_bytes, removed_bytes);
     user_stats_cache.adjust_stats(user, bucket, obj_delta, added_bytes, removed_bytes);
-  };
+  }
 };
 
 
 RGWQuotaHandler *RGWQuotaHandler::generate_handler(RGWRados *store, bool quota_threads)
 {
   return new RGWQuotaHandlerImpl(store, quota_threads);
-};
+}
 
 void RGWQuotaHandler::free_handler(RGWQuotaHandler *handler)
 {
index 3d2fe11dfeaff6f6d28507159a3dec82657e0ce7..5a8d09adbe1ccab8a4131643f1e29920bf8b6a0c 100644 (file)
@@ -1013,7 +1013,7 @@ int RGWPutObjProcessor_Plain::prepare(RGWRados *store, void *obj_ctx)
   obj.init(bucket, obj_str);
 
   return 0;
-};
+}
 
 int RGWPutObjProcessor_Plain::handle_data(bufferlist& bl, off_t _ofs, void **phandle)
 {
@@ -1202,7 +1202,7 @@ int RGWPutObjProcessor_Atomic::prepare_next_part(off_t ofs) {
   add_obj(cur_obj);
 
   return 0;
-};
+}
 
 int RGWPutObjProcessor_Atomic::complete_parts()
 {
index b19d3bd8a0292a72a2ad93a89ab75abfad952ac8..381682fd6b146a9d7f8f0ad74522a7279a88e9e4 100644 (file)
@@ -116,7 +116,7 @@ struct RGWObjManifestPart {
   void dump(Formatter *f) const;
   static void generate_test_instances(list<RGWObjManifestPart*>& o);
 };
-WRITE_CLASS_ENCODER(RGWObjManifestPart);
+WRITE_CLASS_ENCODER(RGWObjManifestPart)
 
 /*
  The manifest defines a set of rules for structuring the object parts.
@@ -163,7 +163,7 @@ struct RGWObjManifestRule {
   }
   void dump(Formatter *f) const;
 };
-WRITE_CLASS_ENCODER(RGWObjManifestRule);
+WRITE_CLASS_ENCODER(RGWObjManifestRule)
 
 class RGWObjManifest {
 protected:
@@ -484,7 +484,7 @@ public:
     }
   };
 };
-WRITE_CLASS_ENCODER(RGWObjManifest);
+WRITE_CLASS_ENCODER(RGWObjManifest)
 
 struct RGWUploadPartInfo {
   uint32_t num;
@@ -541,7 +541,7 @@ public:
     store = _store;
     obj_ctx = _o;
     return 0;
-  };
+  }
   virtual int handle_data(bufferlist& bl, off_t ofs, void **phandle) = 0;
   virtual int throttle_data(void *handle) = 0;
   virtual int complete(string& etag, time_t *mtime, time_t set_mtime, map<string, bufferlist>& attrs);
@@ -767,7 +767,7 @@ struct RGWZonePlacementInfo {
   void dump(Formatter *f) const;
   void decode_json(JSONObj *obj);
 };
-WRITE_CLASS_ENCODER(RGWZonePlacementInfo);
+WRITE_CLASS_ENCODER(RGWZonePlacementInfo)
 
 struct RGWZoneParams {
   rgw_bucket domain_root;
@@ -838,7 +838,7 @@ struct RGWZoneParams {
   void dump(Formatter *f) const;
   void decode_json(JSONObj *obj);
 };
-WRITE_CLASS_ENCODER(RGWZoneParams);
+WRITE_CLASS_ENCODER(RGWZoneParams)
 
 struct RGWZone {
   string name;
@@ -870,7 +870,7 @@ struct RGWZone {
   void dump(Formatter *f) const;
   void decode_json(JSONObj *obj);
 };
-WRITE_CLASS_ENCODER(RGWZone);
+WRITE_CLASS_ENCODER(RGWZone)
 
 struct RGWDefaultRegionInfo {
   string default_region;
@@ -889,7 +889,7 @@ struct RGWDefaultRegionInfo {
   void dump(Formatter *f) const;
   void decode_json(JSONObj *obj);
 };
-WRITE_CLASS_ENCODER(RGWDefaultRegionInfo);
+WRITE_CLASS_ENCODER(RGWDefaultRegionInfo)
 
 struct RGWRegionPlacementTarget {
   string name;
@@ -926,7 +926,7 @@ struct RGWRegionPlacementTarget {
   void dump(Formatter *f) const;
   void decode_json(JSONObj *obj);
 };
-WRITE_CLASS_ENCODER(RGWRegionPlacementTarget);
+WRITE_CLASS_ENCODER(RGWRegionPlacementTarget)
 
 
 struct RGWRegion {
@@ -985,7 +985,7 @@ struct RGWRegion {
   void dump(Formatter *f) const;
   void decode_json(JSONObj *obj);
 };
-WRITE_CLASS_ENCODER(RGWRegion);
+WRITE_CLASS_ENCODER(RGWRegion)
 
 struct RGWRegionMap {
   Mutex lock;
@@ -1011,7 +1011,7 @@ struct RGWRegionMap {
   void dump(Formatter *f) const;
   void decode_json(JSONObj *obj);
 };
-WRITE_CLASS_ENCODER(RGWRegionMap);
+WRITE_CLASS_ENCODER(RGWRegionMap)
 
 class RGWDataChangesLog;
 class RGWReplicaLogger;
index 471ac3f167816eb6f99ed8d2a16dac3596191414..b94e41f6878de1155a8c18d8a4ac253130f58a44 100644 (file)
@@ -167,7 +167,7 @@ RGWResolver::RGWResolver() {
 
 int RGWResolver::resolve_cname(const string& hostname, string& cname, bool *found) {
   return resolver->resolve_cname(hostname, cname, found);
-};
+}
 
 RGWResolver *rgw_resolver;
 
index 9f011922b35f7761a74f7b618794d65a5c2574dc..b2ec5ae231bd8d9cda5ecd526f69f602cfda354a 100644 (file)
@@ -238,17 +238,17 @@ RGWOp *RGWHandler_Bucket::op_get()
     return new RGWOp_Check_Bucket_Index;
 
   return new RGWOp_Bucket_Info;
-};
+}
 
 RGWOp *RGWHandler_Bucket::op_put()
 {
   return new RGWOp_Bucket_Link;
-};
+}
 
 RGWOp *RGWHandler_Bucket::op_post()
 {
   return new RGWOp_Bucket_Unlink;
-};
+}
 
 RGWOp *RGWHandler_Bucket::op_delete()
 {
@@ -256,5 +256,5 @@ RGWOp *RGWHandler_Bucket::op_delete()
     return new RGWOp_Object_Remove;
 
   return new RGWOp_Bucket_Remove;
-};
+}
 
index 1124d2b298b30de17c0e6f9116f8a9cc0a2b546d..8efb261ae6165ec7bc38d71a44722ae3c82c6817 100644 (file)
@@ -86,11 +86,11 @@ void RGWOp_Usage_Delete::execute() {
 RGWOp *RGWHandler_Usage::op_get()
 {
   return new RGWOp_Usage_Get;
-};
+}
 
 RGWOp *RGWHandler_Usage::op_delete()
 {
   return new RGWOp_Usage_Delete;
-};
+}
 
 
index 30f46f0561861967c7a50b39ee3553c21dce65cb..ac0952ca2c4fad59af17054948bf4c0f601748e1 100644 (file)
@@ -874,7 +874,7 @@ RGWOp *RGWHandler_User::op_get()
     return new RGWOp_Quota_Info;
 
   return new RGWOp_User_Info;
-};
+}
 
 RGWOp *RGWHandler_User::op_put()
 {
@@ -891,7 +891,7 @@ RGWOp *RGWHandler_User::op_put()
     return new RGWOp_Quota_Set;
 
   return new RGWOp_User_Create;
-};
+}
 
 RGWOp *RGWHandler_User::op_post()
 {
@@ -899,7 +899,7 @@ RGWOp *RGWHandler_User::op_post()
     return new RGWOp_Subuser_Modify;
 
   return new RGWOp_User_Modify;
-};
+}
 
 RGWOp *RGWHandler_User::op_delete()
 {
@@ -913,5 +913,5 @@ RGWOp *RGWHandler_User::op_delete()
     return new RGWOp_Caps_Remove;
 
   return new RGWOp_User_Remove;
-};
+}
 
index 9595a02cec27abf8ea6a9fd6f32c501a71ac111b..56ca00ec922e1b5ddc873b0c8288501ba5ae4c1b 100644 (file)
@@ -38,7 +38,7 @@ get_next()
     ++cur;
   }
   return obj;
-};
+}
 
 ostream& operator<<(ostream& out, XMLObj& obj) {
    out << obj.obj_type << ": " << obj.data;
index ce9a7f50d37af459bb33388a8fe57045fd5bb632..03337dd6c1e07b14eedbd088167529df76962e2d 100644 (file)
@@ -214,8 +214,8 @@ TYPE(EUpdate)
 #ifdef WITH_RADOSGW
 
 #include "rgw/rgw_rados.h"
-TYPE(RGWObjManifestPart);
-TYPE(RGWObjManifest);
+TYPE(RGWObjManifestPart)
+TYPE(RGWObjManifest)
 
 #include "rgw/rgw_acl.h"
 TYPE(ACLPermission)
@@ -276,8 +276,8 @@ TYPE(cls_user_get_header_ret)
 TYPE(cls_user_complete_stats_sync_op)
 
 #include "rgw/rgw_common.h"
-TYPE(RGWAccessKey);
-TYPE(RGWSubUser);
+TYPE(RGWAccessKey)
+TYPE(RGWSubUser)
 TYPE(RGWUserInfo)
 TYPE(rgw_bucket)
 TYPE(RGWBucketInfo)
index 5bd084fcfcd4000675e308392c8ab84d3ef4ddec..83e5a31cd21639b6407198ba59dc39e4355e5aa3 100644 (file)
@@ -92,8 +92,8 @@ protected:
 
 class RadosTestECPP : public ::testing::Test {
 public:
-  RadosTestECPP() : cluster(s_cluster) {};
-  virtual ~RadosTestECPP() {};
+  RadosTestECPP() : cluster(s_cluster) {}
+  virtual ~RadosTestECPP() {}
 protected:
   static void SetUpTestCase();
   static void TearDownTestCase();