Mykola Golub
d911641ccb
journal: update allocated tid when skipping committed entry in player
...
Otherwise, if on image open, there are no any uncommitted entries in
journal, allocated tid is not updated to the latest commited and
recording always starts from tid=0.
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-11-12 13:33:44 +02:00
Mykola Golub
a1b690d9d3
cls::journal: fixup: constify dump functions
...
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-11-11 17:04:33 +02:00
Mykola Golub
0b261e2f83
journal: call metadata shutdown on journal remove
...
This fixes error observed when disabling journal:
JournalMetadata: journal watch error: (107) Transport endpoint is not connected
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-11-11 17:04:11 +02:00
Mykola Golub
0dd6e0fd28
journal: don't use object_number when comparing positions
...
Only tid does matter.
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-11-11 17:03:51 +02:00
Mykola Golub
b9c6ae8794
journal: make commit and flush params configurable
...
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-11-11 17:00:02 +02:00
Mykola Golub
13bc7beb04
journal: allow alternate pool for journal objects
...
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-11-11 16:44:08 +02:00
Mykola Golub
d4a14e0b4d
journal: output operators for journal types
...
They are going to be used for diagnostic.
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-11-11 16:43:56 +02:00
Josh Durgin
f661a559aa
Merge pull request #6516 from trociny/wip-13719
...
librbd: perf section name: use hyphen to separate components
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-11-10 23:55:37 -08:00
Mykola Golub
595c1e5650
tests: rbd/admin_socket: use xmlstarlet when parsing perf dump
...
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-11-11 09:19:47 +02:00
Mykola Golub
fbe5526d09
librbd: perf section name: use hyphen to separate components
...
"/" and "@" characters make invalid xml format output.
Fixes : #13719
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-11-11 09:19:47 +02:00
Vikhyat Umrao
b30d1b8d00
doc: Adding --cluster option to rbd man page.
...
Fixes #13457
Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-11-10 22:05:59 -08:00
Loic Dachary
50504c90e7
Merge pull request #6519 from kylinstorage/wip-revise-organization
...
revise organization
Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-11-11 07:05:12 +01:00
Josh Durgin
426450472a
Merge branch 'wip-11286' of https://github.com/dillaman/ceph
...
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-11-10 21:19:37 -08:00
Josh Durgin
d46d4a98b6
Merge pull request #5987 from dillaman/wip-rbd-refactor
...
rbd: refactor cli command handling
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-11-10 21:18:04 -08:00
Jason Dillaman
6daa1ebc21
tests: updated rbd CLI --image-feature optional
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-10 13:55:39 -05:00
Jason Dillaman
1be02b1d87
rbd: corrected handling of '--image-feature' optional
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-10 13:21:11 -05:00
Kefu Chai
7481f43e39
Merge pull request #6488 from xiexingguo/xxg-wip-rados-cleanup
...
librados: do cleanup
Reviewed-by: Sebastien Ponce <sebastien.ponce@cern.ch>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-11-11 00:56:40 +08:00
Josh Durgin
b54719b01c
Merge pull request #6523 from dillaman/wip-13740
...
librbd: perf counters might not be initialized on error
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-11-10 08:32:40 -08:00
Jason Dillaman
dd5a263b83
librbd: perf counters might not be initialized on error
...
Fixes : #13740
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-10 08:20:13 -05:00
Jason Dillaman
08b4c294b7
PendingReleaseNotes: document updated rbd CLI options
...
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-10 07:59:03 -05:00
Loic Dachary
cd71c1a414
Merge pull request #6522 from branch-predictor/bp-temporary-mon-fix
...
mon: revert MonitorDBStore's WholeStoreIteratorImpl::get
Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-11-10 12:54:55 +01:00
Piotr Dałek
d548b5fbb4
mon: revert MonitorDBStore's WholeStoreIteratorImpl::get
...
Revert MonitorDBStore's WholeStoreIteratorImpl::get method to state
before commit 66b7b920cf
until better,
long-term solution for #13742 will be provided.
Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
2015-11-10 12:50:55 +01:00
Li Wang
f01892807f
revise organization
...
Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
2015-11-10 17:24:12 +08:00
Josh Durgin
15f8ea00e4
Merge pull request #6394 from dillaman/wip-13560
...
krbd: remove deprecated --quiet param from udevadm
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-11-09 23:30:42 -08:00
Josh Durgin
220ed185f3
Merge pull request #6447 from dillaman/wip-13674
...
librbd: resize should only update image size within header
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-11-09 23:27:08 -08:00
xiexingguo
f7f5a08051
internal: remove unused local variables
...
Remove unused variables bl and bl2 in snap_list and ictx_refresh.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2015-11-10 07:29:54 +08:00
xiexingguo
c8fe5ae357
librados: cast oid to object explicitly before call ioctx methods
...
Cast oid to object explicitly before call ioctx methods.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2015-11-10 07:27:40 +08:00
Yehuda Sadeh
866d0a0892
Merge pull request #6513 from ceph/revert-6419-wip-openssl
...
Revert 0374bb4a2f
2015-11-09 15:26:12 -08:00
xiexingguo
e986ade817
IoCtxImpl: remove unused variable sName
...
remove unused local variable sName in rollback.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2015-11-10 07:26:03 +08:00
Yehuda Sadeh
a5651b867a
Revert 0374bb4a2f
2015-11-09 15:24:29 -08:00
Yehuda Sadeh
0374bb4a2f
Merge pull request #6419 from ceph/wip-openssl
...
rgw: link against system openssl (instead of dlopen at runtime)
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-11-09 13:56:29 -08:00
Jason Dillaman
d93a7951d7
Merge pull request #6453 from trociny/wip-2468
...
librbd: flush and invalidate cache via admin socket
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2015-11-09 16:36:58 -05:00
Sage Weil
62f122d4ab
Merge pull request #6511 from liewegas/wip-fix-kv
...
kv: fix bug in kv key optimization
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
2015-11-09 14:30:14 -05:00
Yehuda Sadeh
f5ac4a0c23
Merge branch 'wip-12955'
2015-11-09 11:03:40 -08:00
brian
7496741ebb
rgw: fix modification to index attrs when setting acls
...
Fixes : #12955
- add ACL change after initial population
- populate bufferlist with object attributes
Signed-off-by: Brian Felton <bjfelton@gmail.com>
2015-11-09 11:03:02 -08:00
Sage Weil
9689fe0ae0
kv: fix string ctor usage
...
When constructing a string from a char* there is only a single
length argument, no offset. The 3 argument variant we were using
was converting to a std::string first (an prematurely terminating
on \0).
Signed-off-by: Sage Weil <sage@redhat.com>
2015-11-09 13:40:41 -05:00
Yehuda Sadeh
754e37a952
Merge pull request #6047 from Sandy4999/wip-13140
...
rgw: fix swift API returning incorrect account metadata
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-11-09 10:38:46 -08:00
Josh Durgin
c26ec99ce5
Merge pull request #6504 from dillaman/wip-13727
...
tests: fix typo in TestClsRbd.snapshots test case
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-11-09 10:19:09 -08:00
Mykola Golub
d33842d237
tests: librbd: admin socket commands to flush and invalidate cache
...
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-11-09 16:14:11 +02:00
Mykola Golub
0996f9dfce
librbd: flush and invalidate cache via admin socket
...
Fixes : #2468
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-11-09 16:14:11 +02:00
Mykola Golub
39503f5841
librbd: perf counter for cache invalidates
...
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2015-11-09 16:14:11 +02:00
Sage Weil
6ab35330e6
Merge pull request #6312 from liewegas/wip-kv
...
kv: optimize and clean up internal key/value interface
Reviewed-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
2015-11-09 09:10:37 -05:00
Jason Dillaman
3b39226709
tests: fix typo in TestClsRbd.snapshots test case
...
Fixes : #13727
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-11-09 09:06:05 -05:00
Sage Weil
b5332742ad
Merge pull request #6300 from XinzeChi/wip-throttle-max
...
common: fix reset max in Throttle using perf reset command
Reviewed-by: Loic Dachary <ldachary@redhat.com>
2015-11-09 09:04:25 -05:00
Sage Weil
d74de14f7c
Merge pull request #6364 from dillaman/wip-13491
...
osd: fix broken balance / localized read handling
Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-11-09 09:03:41 -05:00
Sage Weil
8ad594fb05
tracing: fix librados signed/unsigned warnings
...
Signed-off-by: Sage Weil <sage@redhat.com>
2015-11-09 09:03:23 -05:00
Piotr Dałek
057d39a107
os/osd: disable extra iterator validation
...
In a number of loops using ObjectMapIterator, the iterator is validated
twice, first as an loop break condition, then during iter->next() call.
Suppress the validation in next() method in those cases for better
performance.
Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
2015-11-09 09:03:23 -05:00
Piotr Dałek
117f40c690
os/KeyValueDB: don't call self.valid() from next() and prev()
...
In most loops using ObjectMapIteratorImpl, there is a call to valid()
followed by a call to next(), which calls valid() again. Calling
valid() alone is particularly expensive, so don't do it twice if
possible.
Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
2015-11-09 09:03:22 -05:00
Piotr Dałek
66b7b920cf
mon/MonitorDBStore: use single-key LevelDB::get() method
...
Make MonitorDBStore use single-key ::get() method for some performance
increase in heavy K/V workloads.
Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
2015-11-09 09:03:22 -05:00
Piotr Dałek
a3f88918c9
os/DBObjectMap: use single-key LevelDB::get method
...
Make FileStore use single-key ::get() method for some performance
increase in k/v-heavy workloads.
Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
2015-11-09 09:03:22 -05:00