Commit Graph

13255 Commits

Author SHA1 Message Date
Colin Patrick McCabe
468ce23ed3 do_autogen: add -O2 when compiling for profiling
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-03-07 03:04:39 -08:00
Greg Farnum
dc8ff94ee7 Merge branch 'mds' 2011-03-07 09:19:18 -08:00
Sage Weil
94a4e86236 Merge branch 'stable' 2011-03-05 21:27:13 -08:00
Sage Weil
1b99add028 tests/cli/osdmaptool: default pg_num changed
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-03-05 21:26:24 -08:00
Sage Weil
d4e4af1bed testlibrbd: signed return types
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-03-05 20:50:56 -08:00
Sage Weil
8fe0f48b75 filestore: fix signedness so we can handle errors from safe_pread
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-03-05 20:41:55 -08:00
Sage Weil
69c7e59cb7 version: fix const warning
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-03-05 20:40:55 -08:00
Sage Weil
aa251bd6ac safe_io: fix signed/unsigned comparisons
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-03-05 20:40:13 -08:00
Sage Weil
0cbfbee3b8 tests/cli/osdmaptool: default pg_num changed
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-03-05 20:39:24 -08:00
Sage Weil
7a529d5803 crush: remove misleading comment
This is a stale comment from an earlier iteration of the implementation.

Reported-by: Alexander Lyakas <alex.bolshoy@gmail.com>
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-03-05 15:27:37 -08:00
Sage Weil
46d63d9843 crush: fix memory leak
Reported-by: Alexander Lyakas <alex.bolshoy@gmail.com>
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-03-05 15:27:33 -08:00
Sage Weil
10bc2d9979 Merge branch 'next'
Conflicts:
	configure.ac
	debian/changelog
	debian/control
	src/Makefile.am
	src/cmds.cc
	src/cosd.cc
	src/include/rados/librados.hpp
	src/librados.cc
	src/mds/Server.cc
	src/osd/OSD.cc
	src/testradospp.cc
2011-03-05 15:27:25 -08:00
Sage Weil
3fa121bf0a v0.25 2011-03-05 13:59:50 -08:00
Sage Weil
4ac0881025 Bump librados soname to 2.
Update Debian packaging. For human-only mentions of librados,
use just "librados"

Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>

Conflicts:

	debian/control
	src/Makefile.am
2011-03-05 13:59:49 -08:00
Sage Weil
82282f25c1 config: back to 6 pg bits for now
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-03-05 13:30:42 -08:00
Sage Weil
46b01f4a78 Merge branch 'osd_recovery' into next 2011-03-04 14:19:40 -08:00
Yehuda Sadeh
08af63da1e rgw: put object request returns etag 2011-03-04 14:25:47 -08:00
Sage Weil
c07f357885 test_missing_unfound: asdf
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-03-04 14:19:33 -08:00
Sage Weil
2494d59303 osd: requeue pg for recovery if we may have found someting
If we get a peer log/missing and call search_for_missing, requeue the pg
for recovery so we can pull anything we may have just found.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-03-04 14:00:02 -08:00
Sage Weil
53428c0ea5 osd: include all up peers in might_have_unfound when desperate
If our might_have_unfound calculation was off (it currently can be, see
#865) we could prematurely give up.  Try any up OSD at this stage just to
be sure.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-03-04 13:59:24 -08:00
Sage Weil
30c5091c54 osd: recover_primary if recover_replicas starts no ops
recover_replicas may fail to start anything if we see an unexpected error.
In that case, try recover_primary immediately instead of waiting for the
PG to (hopefully) get requeued for recovery later.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-03-04 09:39:59 -08:00
Sage Weil
836f72a166 osd: discover more missing if unfound and do_recovery can't start anything
If we couldn't start any recovery ops and things are still
unfound, see if we can discover more missing object locations.
It may be that our initial locations were bad and we errored
out while trying to pull.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-03-04 09:38:47 -08:00
Colin Patrick McCabe
88cc244e32 do_autogen.sh: add -P option
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-03-04 09:30:45 -08:00
Sage Weil
3d62938350 osd: debug the hell out of heartbeat thread
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-03-04 15:46:08 -08:00
Colin Patrick McCabe
964f1e197f Fix test/signals.cc
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-03-03 22:32:21 -08:00
Sage Weil
ab74d498a9 librados: cosmetic header changes
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
2011-03-03 21:34:26 -08:00
Josh Durgin
e779a3c03c librados, librbd: use separate IoCtxs for data and metadata
Adds deep copy method IoCtx::dup, so that the data and metadata
contexts can have different snap_seqs and snap contexts.

Also avoid calling Rados::shutdown explicitly, since the destructor
will do this, and it must run after the Image destructor.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-03-03 16:10:39 -08:00
Josh Durgin
37edd473c8 librbd: fix error message and unnamed constant
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-03-03 16:10:26 -08:00
Josh Durgin
4934329634 librbd: change RBD::open to take a reference to an Image instead of a pointer
This makes the API more consistent with the librados API.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-03-03 16:08:58 -08:00
Josh Durgin
fdd50a150a librados: remove unused member of IoCtx
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-03-03 16:08:41 -08:00
Yehuda Sadeh
1de0b274cb librados: IoCtx destructor should put reference only if initalized 2011-03-03 16:08:27 -08:00
Yehuda Sadeh
2e3b84486c librados: can set up object locator 2011-03-03 16:06:27 -08:00
Colin Patrick McCabe
f45a790f6e librados:rados_ioctx_stat -> rados_ioctx_pool_stat
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-03-03 16:05:59 -08:00
Yehuda Sadeh
3ebaa4c7d9 object_locator: fix clear() 2011-03-03 16:05:47 -08:00
Colin Patrick McCabe
b2ceb75cf5 librados: use atomic_t for reference count
Use an use atomic_t for the reference count in IoCtxImpl.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-03-03 16:04:27 -08:00
Josh Durgin
6f797af1ad librados: make IoCtxImpl a pointer in WatchContext
Adds get and put to IoCtxImpl for refcounting,
and uses them in WatchContext, which shouldn't
be creating a copy of the IoCtxImpl.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-03-03 16:04:20 -08:00
Josh Durgin
773f0034b1 librados: decrement refcount of old io_ctx_impl in assignment operator
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-03-03 16:04:13 -08:00
Colin Patrick McCabe
0e32cd2f55 librados: fix IoCtx::from_rados_ioctx_t
IoCtx::from_rados_ioctx_t creates an IoCtx out of a rados_ioctx_t.
However, this IoCtx must share ownership of the IoCtxImpl pointer with
the C API user who first called rados_ioctx_create. This must be done
via a reference count inside the IoCtxImpl.

Also add a copy constructor and assignment operator to class IoCtx,
since it's now cheap to have them.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-03-03 16:04:06 -08:00
Colin Patrick McCabe
ecab94cac3 Rename radios_ioctx_{open,close} to create/destroy
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-03-03 16:03:54 -08:00
Colin Patrick McCabe
ae77624bc8 librados: remove IoCtx::close()
We decided we don't want IoCtx::close(), since IoCtx::~IoCtx() exists.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-03-03 16:03:46 -08:00
Tommi Virtanen
7d06b1b226 Make git ignore core files. 2011-03-03 16:03:23 -08:00
Tommi Virtanen
77880416c7 Make git ignore python generated files. 2011-03-03 16:03:07 -08:00
Tommi Virtanen
7d6a4fc6a4 librados: Crashed on shutdown if connect was never called.
Add a trivial unit test to trigger this.
2011-03-03 16:02:38 -08:00
Colin Patrick McCabe
b734043192 libradoshpp: put ceph stuff in namespace librados
Try a little bit harder to avoid polluting the user's global namespace
with our stuff.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-03-03 16:00:35 -08:00
Colin Patrick McCabe
b97388f975 librados: don't create unused SnapContext objs
There were some unused temporary variables hanging around.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-03-03 16:00:20 -08:00
Colin Patrick McCabe
062dd5ebf8 librados: fix copy ctor of ObjectIterator
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-03-03 16:00:08 -08:00
Josh Durgin
46d6214ba1 testrados: add object stat test
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-03-03 15:59:38 -08:00
Josh Durgin
60482f5a3f testlibrbd: recreate test pool each time
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-03-03 15:59:25 -08:00
Colin Patrick McCabe
1ed2d8c587 Fix test/signals.cc
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
2011-03-03 14:54:15 -08:00
Josh Durgin
a6ef907761 librados, librbd: use separate IoCtxs for data and metadata
Adds deep copy method IoCtx::dup, so that the data and metadata
contexts can have different snap_seqs and snap contexts.

Also avoid calling Rados::shutdown explicitly, since the destructor
will do this, and it must run after the Image destructor.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
2011-03-03 15:24:38 -08:00