Danny Al-Gaaf
8793921ce2
mds/Server.cc: replace inefficient string::find() w/ compare()
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2016-02-19 12:50:35 +01:00
Danny Al-Gaaf
729117f90e
client/SyntheticClient.cc: reduce scope of some variables
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2016-02-19 12:50:35 +01:00
Danny Al-Gaaf
cfd076537a
client/SyntheticClient.cc: remove unused code
...
Removed since 2007 unused code and fixed indentation.
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2016-02-19 12:50:35 +01:00
Danny Al-Gaaf
2b60306467
client/Client.cc: init owner_uid and owner_gid vars in ctor
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2016-02-19 12:50:35 +01:00
Danny Al-Gaaf
d407faa274
rgw/rgw_rados.cc: remove unused variable locator
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2016-02-19 12:50:35 +01:00
Danny Al-Gaaf
822eecf8d3
rgw/rgw_op.cc: remove unused variables
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2016-02-19 12:50:35 +01:00
Danny Al-Gaaf
a5d78c22fb
rgw/rgw_admin.cc: remove unused variables
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2016-02-19 12:50:35 +01:00
Danny Al-Gaaf
aef72abe7f
mds/mdstypes.h: init fnode_t::damage_flags in ctor
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2016-02-19 12:50:35 +01:00
Danny Al-Gaaf
c08435cfe5
client/Client.cc: reduce scope of some variables
...
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2016-02-19 12:50:35 +01:00
Kefu Chai
f6692a42df
Merge pull request #7371 from theanalyst/mon/quota-msg-cleanup
...
mon: cleanup set-quota error msg
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-02-19 17:56:20 +08:00
Josh Durgin
49a7ef5001
Merge pull request #7708 from jdurgin/wip-cython-cleanup
...
pybind: replace __del__ with __dealloc__ for rbd
Reviewed-by: Hector Martin <marcan@marcan.st>
Reviewed-by: Mehdi Abaakouk <sileht@sileht.net>
2016-02-19 00:34:50 -08:00
Abhishek Lekshmanan
a917ccfce5
mon: cleanup set-quota error msg
...
When we send in an unrecognized field for set-quota, specify that the
options should be `max_bytes` or `max_objects`. This doesn't affect the
ceph-cli as the choices are caught at an earlier stage, however the
error message is seen while reaching the cluster via rados api for eg.
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2016-02-19 09:29:04 +01:00
Josh Durgin
b556b24a31
Merge pull request #7668 from dillaman/wip-librbd-replay-locks
...
librbd: use async librados notifications
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-02-19 00:15:36 -08:00
Yehuda Sadeh
9695a0b4d1
rgw: avoid empty object names
...
Don't try to sync an object with empty name (shouldn't happen, but
bugs may happen). Also, don't try to write_meta() of an empty object
name, in case we get there through a different path somehow.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-18 23:50:06 -08:00
Josh Durgin
3d391546f5
.gitignore: include recently added rgw programs
...
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2016-02-18 23:49:09 -08:00
Yehuda Sadeh
3f525f4043
rgw: fix s3 list bucket (affects format=json)
...
another merge casualty. The section wasn't opened properly.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-18 23:49:00 -08:00
Josh Durgin
0a988f95bc
pybind: replace __del__ with __dealloc__ for rbd
...
Cython extension types like these don't call __del__, but use
__dealloc__ instead:
http://docs.cython.org/src/userguide/special_methods.html#finalization-method-dealloc
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2016-02-18 23:47:24 -08:00
Josh Durgin
5489ad3a21
Merge pull request #7706 from sileht/sileht/rados-cython
...
pybind: remove next() on iterators
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-02-18 23:46:21 -08:00
Yehuda Sadeh
1e47268557
rgw: only validate bucket name if not empty
...
This got broken due to code movement
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-18 23:09:48 -08:00
Yehuda Sadeh
804e6c8f94
rgw: resurrect lost code
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-18 23:07:07 -08:00
Mehdi Abaakouk
f98b4855e4
pybind: remove next() on iterator
...
Cython recommends to implement only __next__() methods.
http://docs.cython.org/src/userguide/special_methods.html#the-next-method
Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
2016-02-19 07:59:08 +01:00
Javen Wu
36af480293
common: default cluster name to config file prefix
...
Signed-off-by: Javen Wu <javen.wu@xtaotech.com>
2016-02-19 06:55:09 +00:00
Loic Dachary
78b3c40cbc
Merge pull request #7641 from batrick/vstart-usage
...
Clarify usage on starting single osd/mds/mon.
Reviewed-by: Loic Dachary <ldachary@redhat.com>
2016-02-19 13:25:46 +07:00
Haomai Wang
8243d1803e
Event: replace fileevent array to vector
...
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-19 14:16:26 +08:00
Haomai Wang
d5463d76d9
Event: delete leak event callback
...
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-02-19 14:15:36 +08:00
Yehuda Sadeh
72b0333017
test/Makefile-client.am: adjustment following merge
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-18 20:49:35 -08:00
Jason Dillaman
eee7d9e019
librbd: helper method for flushing journal commit positions
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-18 22:53:11 -05:00
Jason Dillaman
999a319dd9
journal: added interface to flush pending commit position updates
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-18 22:53:10 -05:00
Josh Durgin
398c493fa9
Merge pull request #7692 from sileht/sileht/rados-cython
...
pybind/rados: use __dealloc__ since __del__ is ignored by cython
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-02-18 17:42:26 -08:00
Yehuda Sadeh
4d494d5b05
Merge remote-tracking branch 'origin/master' into wip-rgw-new-multisite
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Conflicts:
src/CMakeLists.txt
src/rgw/Makefile.am
src/rgw/rgw_admin.cc
src/rgw/rgw_common.h
src/rgw/rgw_main.cc
src/rgw/rgw_op.cc
src/rgw/rgw_rados.h
src/rgw/rgw_rest_s3.cc
src/test/Makefile-client.am
2016-02-18 17:14:07 -08:00
Jason Dillaman
1cfd965815
librbd: differentiate journal replay flush vs shut down
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-18 19:58:48 -05:00
Yehuda Sadeh
ac168e3f00
rgw: add drain_all() before exiting a cr
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-18 15:25:52 -08:00
Yehuda Sadeh
d95fcfa544
rgw: silence compilation #warnings
...
these are now FIXMEs
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-18 15:20:20 -08:00
Yehuda Sadeh
996e6e9a8a
rgw: more error reporting
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-18 15:18:08 -08:00
Yehuda Sadeh
ac726c6dd4
rgw: data sync error handling (for sync init)
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-18 15:18:03 -08:00
Yehuda Sadeh
d2d0f8471e
rgw: a bit better hashing
...
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-18 15:11:00 -08:00
Jason Dillaman
4f15332db3
librbd: don't hold owner lock while refreshing image synchronously
...
The write lock will be taken when the new state is applied.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-18 17:58:28 -05:00
Jason Dillaman
4ecdf066fd
librbd: need owner write lock when disabling exclusive lock
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-18 17:56:20 -05:00
Jason Dillaman
922072aeb5
librbd: correct memory leaks discovered via valgrind
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-18 17:46:35 -05:00
Jason Dillaman
7e09cb132b
librbd: notifications should be flushed between exclusive lock states
...
Avoid leaving in-flight notification messages when transitioning lock
states.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-18 17:46:34 -05:00
Casey Bodley
eebe61a579
rgw: RGWMetaSyncCR loops through period history
...
RGWMetaSyncCR uses a period history Cursor to track its position. it
uses this to get the max sync markers for each shard from the following
period, so that RGWMetaSyncShardCR knows when to stop syncing and return
control to RGWMetaSyncCR
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-02-18 14:04:21 -08:00
Casey Bodley
6b6625e28c
rgw: get period history cursor when starting sync
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-02-18 14:04:21 -08:00
Casey Bodley
12cae9e702
rgw: remove RGWMetadataManager::store_md_log_entries
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-02-18 14:04:20 -08:00
Casey Bodley
be5c263fa4
rgw: rados coroutines take bucket by const ref
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-02-18 14:04:20 -08:00
Casey Bodley
f10a6d4f92
rgw: add first log period to mdlog info response
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-02-18 14:04:20 -08:00
Casey Bodley
988133019a
rgw: factor get_log_shard_id() out of RGWMetadataLog
...
by using RGWRados::key_to_shard_id(), we can avoid the dependency on
RGWMetadataLog's prefix (and period)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-02-18 14:04:20 -08:00
Casey Bodley
adab1e1859
rgw: add period id to rgw_rest_log operations
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-02-18 14:04:20 -08:00
Casey Bodley
02edcdd905
rgw-admin: update callers of get_log
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-02-18 14:04:20 -08:00
Casey Bodley
34ea6bcc85
rgw: add map of period_id -> RGWMetadataLog
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-02-18 14:04:20 -08:00
Casey Bodley
5b12ec0b7d
rgw: add period id to metadata log oids
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-02-18 14:04:19 -08:00