]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Tommi Virtanen [Fri, 4 Mar 2011 23:30:57 +0000 (15:30 -0800)]
auth: Make error message on bad AES key lenght say the bad length too.
Helps debugging.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Tommi Virtanen [Tue, 8 Mar 2011 01:01:06 +0000 (17:01 -0800)]
auth: Use AES IV constant directly, not via local static pointer.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Tommi Virtanen [Wed, 2 Mar 2011 21:26:32 +0000 (13:26 -0800)]
auth: Drop "using namespace", it's almost always used explicitly anyway.
This helps us be agnostic about what crypto library is in use.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Tommi Virtanen [Wed, 2 Mar 2011 21:11:37 +0000 (13:11 -0800)]
auth: Add unit tests to check basic crypto sanity.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Tommi Virtanen [Wed, 2 Mar 2011 17:11:15 +0000 (09:11 -0800)]
auth: Removed unused function generate_random_string.
It doesn't sound like a good idea in the first place, with
embedded zero bytes terminating the string prematurely.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Tommi Virtanen [Thu, 10 Mar 2011 23:23:56 +0000 (15:23 -0800)]
Add test/osd/RadosModel.h to noinst_HEADERS.
Caught by "make distcheck".
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Tommi Virtanen [Fri, 11 Mar 2011 21:07:31 +0000 (13:07 -0800)]
autoconf: Complain if libatomic-ops is not found.
Use --without-libatomic-ops if you don't want it.
Fixes part of #826.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Tommi Virtanen [Fri, 11 Mar 2011 20:53:33 +0000 (12:53 -0800)]
autoconf: Complain if tcmalloc is not found.
Use --without-tcmalloc if you don't want it.
Fixes part of #826.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Tommi Virtanen [Fri, 11 Mar 2011 20:39:22 +0000 (12:39 -0800)]
autoconf: Complain if FUSE is not found.
Use --without-fuse if you don't want it.
Fixes part of #826.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Sage Weil [Fri, 11 Mar 2011 20:45:16 +0000 (12:45 -0800)]
osd: wait for handle_osd_map transaction ondisk without doing a full sync
Doing a full sync (forcing a btrfs transaction etc) was just wrong here.
All we (might) care about is whether our Objectstore::Transaction is
stable (in journal or fs) or not.
We are still waiting for those operations to flush to the fs (to be
readable). That may not be necessary either, but shouldn't have a big
performance impact.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Fri, 11 Mar 2011 20:30:35 +0000 (12:30 -0800)]
osd: avoid setting up_thru on new PGs
This trades off the possibility of peering blockage if the OSDs in the
first interval (after pg creation) go down and stay down with avoiding
two osdmap updates for any pg creation. I think this is reasonable given
that:
- If the pg did go active, then it did go RW and assuming as much changed
nothing.
- If the pg did not go active, then it is empty, and there is no data
lost.
To do this:
- When peering during the first ever interval, don't bother setting
up_thru.
- Always mark that interval maybe_went_rw, even though up_thru isn't set
as such.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Colin Patrick McCabe [Fri, 11 Mar 2011 12:56:52 +0000 (04:56 -0800)]
testlibrbdpp: include assert.h
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Fri, 11 Mar 2011 12:37:09 +0000 (04:37 -0800)]
librados: librados::WatchCtx needs virtual dtor
This one was definitely biting because librados itself calls delete on
these objects, deleting them through a pointer-to-base.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Fri, 11 Mar 2011 11:32:14 +0000 (03:32 -0800)]
osd: CapMap: add virtual dtor to virtual class
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Fri, 11 Mar 2011 11:19:13 +0000 (03:19 -0800)]
crushtool: fix warning seen on i386
Fix implicit narrowing warning seen on i386
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Samuel Just [Tue, 8 Mar 2011 20:06:24 +0000 (12:06 -0800)]
tests: add bufferlist unit test
pushing_back an empty bufferptr to an empty bufferlist should be a noop.
In particular, the bl.begin() should be equal to bl.end().
Signed-off-by: Samuel Just <rexludorum@gmail.com>
Tommi Virtanen [Fri, 11 Mar 2011 00:37:11 +0000 (16:37 -0800)]
clitest: Fix tests after osdmaptool --clobber bugfix.
Commit
5c8146b55dbd60bdfa47b53b93f2769f7d0524dc fixed clobber,
adjust clitests to match. Reordered test logic to have "fsid
does not change" check cover a run without --clobber.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Greg Farnum [Thu, 10 Mar 2011 22:06:16 +0000 (14:06 -0800)]
rados: Add "stat" option, and fix "put" to work on larger block sizes.
We didn't have a stat option, now we do.
Previously, "put" allocated its read space on the stack. That meant
the max block size was a little under 8MB, or you got a segfault! Now
it's on the stack, and you can set it as you like.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Sage Weil [Thu, 10 Mar 2011 23:12:22 +0000 (15:12 -0800)]
mkcephfs: modularize
The goal is to support the old "ssh to everything" mode and also a
piecewise mode that lets the administrator do each step and handle
data copying and remote execution themselves.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Thu, 10 Mar 2011 23:11:49 +0000 (15:11 -0800)]
osd: fix keyring loading
Load keyring if NOT mkfs.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Thu, 10 Mar 2011 22:30:35 +0000 (14:30 -0800)]
osdmaptool: don't require clobber to create new osdmap
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Colin Patrick McCabe [Thu, 10 Mar 2011 15:41:50 +0000 (07:41 -0800)]
Don't use -i to set id for non-daemons
Due to conflicts, don't use -i to set id except for daemons.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 10 Mar 2011 15:20:12 +0000 (07:20 -0800)]
common: replace -I with -i, rework --name
Remove -I. All programs will take -i to set ID now.
Support setting the type and id simultaneously with --name or -n.
Revise common usage.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 10 Mar 2011 15:06:59 +0000 (07:06 -0800)]
cauthtool: remove short form of --create-keyring
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 10 Mar 2011 13:34:42 +0000 (05:34 -0800)]
Merge branch 'globalfoo'
Colin Patrick McCabe [Thu, 10 Mar 2011 13:32:07 +0000 (05:32 -0800)]
librbd.cc: trim includes
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Thu, 10 Mar 2011 13:05:59 +0000 (05:05 -0800)]
cram: test --conf=foo cconf syntax
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Wed, 9 Mar 2011 16:44:05 +0000 (08:44 -0800)]
common_init: Split common_init into multiple parts
Split common_init into several different parts which can be called
individually from libraries. Eliminate startup_flags.
Create ceph_argparse_pull and ceph_argparse_next.
Split off keyring_init from common_init.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Tue, 8 Mar 2011 23:46:20 +0000 (15:46 -0800)]
config: trim deadcode
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Wed, 9 Mar 2011 19:43:38 +0000 (11:43 -0800)]
ConfUtils::_parse: fix uninitialized var
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Wed, 9 Mar 2011 12:55:51 +0000 (04:55 -0800)]
config: ConfFile::open: return error code
Return a integer result code specifying why we failed, if we fail.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Wed, 9 Mar 2011 12:06:10 +0000 (04:06 -0800)]
build:add common/entity_name.h to noinst_HEADERS
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Wed, 9 Mar 2011 11:41:42 +0000 (03:41 -0800)]
makefile:Suppress hash warning in include/encoding
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Tue, 8 Mar 2011 23:08:10 +0000 (15:08 -0800)]
Suppress gnu_cxx::hash warning a little bit better
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Tue, 8 Mar 2011 22:59:59 +0000 (14:59 -0800)]
config.cc: retab
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Tue, 8 Mar 2011 16:39:08 +0000 (08:39 -0800)]
common_init: call to ProfilerFlush is unneeded
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Mon, 7 Mar 2011 13:23:43 +0000 (05:23 -0800)]
Replace g_conf.name and g_conf.id with entityname
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Tue, 8 Mar 2011 14:59:31 +0000 (06:59 -0800)]
makefile: Add -Wno-deprecated
Until we can replace gnu_cxx::hash_map with std::tr1::unordered_set,
build with -Wno-deprecated.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Tue, 8 Mar 2011 14:36:40 +0000 (06:36 -0800)]
Merge branch 'globalfoo'
Greg Farnum [Tue, 8 Mar 2011 21:00:44 +0000 (13:00 -0800)]
rgw: cast size_t to unsigned long to fix a 32-bit warning.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Greg Farnum [Tue, 8 Mar 2011 20:54:23 +0000 (12:54 -0800)]
librbd: cast offset values to uint64_t for unsigned comparison warning.
It seems that size_t, off_t, and le64 have different signed/unsigned
properties on 32 and 64-bit Linux platforms, so just cast
them both (since offsets obviously can't be negative).
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Greg Farnum [Tue, 8 Mar 2011 20:30:59 +0000 (12:30 -0800)]
Merge branch 'stable'
Greg Farnum [Tue, 8 Mar 2011 17:36:52 +0000 (09:36 -0800)]
uclient: Clear the CEPH_CAP_FILE_BUFFER ref on _flush, if safe.
Previously we just returned if safe, but leaving the CEPH_CAP_FILE_BUFFER
ref around breaks _fsync horribly. The root cause of this is
update_inode_file_bits calling objectcacher->truncate_set without
clearing the BUFFER ref, but the mechanics of clearing it there are
complicated, and I don't believe there are any issues with keeping
around the extra reference, as long as it's cleared when necessary.
This should fix #862.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Colin Patrick McCabe [Mon, 7 Mar 2011 16:53:54 +0000 (08:53 -0800)]
common_init: no signal handlers for library code
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Mon, 7 Mar 2011 12:39:47 +0000 (04:39 -0800)]
Create common/entity_name.h
Create common/entity_name.h. Refactor EntityName a bit.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Wed, 2 Mar 2011 18:12:38 +0000 (10:12 -0800)]
Add missing includes
Don't rely on header files being included in a certain order or
combination.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Sage Weil [Tue, 8 Mar 2011 00:25:30 +0000 (16:25 -0800)]
mds: use projected subtree in rename anchor check
We want to (try to) reanchor the directory on rename when our _projected_
subtree is not a leaf. If we use the normal get_subtree_root() call,
we get NULL if we are unlinked, which makes is_leaf_subtree() crash.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Yehuda Sadeh [Mon, 7 Mar 2011 21:43:28 +0000 (13:43 -0800)]
librados: add append to object
Sage Weil [Mon, 7 Mar 2011 19:40:15 +0000 (11:40 -0800)]
osd: document last_epoch_clean caveat
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Mon, 7 Mar 2011 19:32:20 +0000 (11:32 -0800)]
osd: include all stray peers in might_have_unfound
We should always consider any OSD that has a copy of the PG as a possible
location for missing objects. There are cases where might_have_unfound is
not completed. For example,
- objects on [1,2]
- 2 marked down/out
- objects on [1,3]
- recovery completes, last_epoch_clean is set.
- 2 comes back online
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Samuel Just [Mon, 7 Mar 2011 13:34:23 +0000 (05:34 -0800)]
buffer.h: push_back,push_front of an empty buffer pointer should be noop
Also adds an assert to copy to ensure that bufferlist iterator copy
completes.
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Colin Patrick McCabe [Mon, 7 Mar 2011 13:14:13 +0000 (05:14 -0800)]
libceph: when calling common_init,set library flag
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Tommi Virtanen [Mon, 7 Mar 2011 19:34:41 +0000 (11:34 -0800)]
Bump debian/changelog timestamp so it's greater than previous one.
This shuts up lintian, and just makes sense.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Tommi Virtanen [Mon, 7 Mar 2011 19:33:33 +0000 (11:33 -0800)]
Make git ignore stamp files from debian build.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Tommi Virtanen [Mon, 7 Mar 2011 19:06:30 +0000 (11:06 -0800)]
Typos.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Colin Patrick McCabe [Mon, 7 Mar 2011 11:04:39 +0000 (03:04 -0800)]
do_autogen: add -O2 when compiling for profiling
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Greg Farnum [Mon, 7 Mar 2011 17:19:18 +0000 (09:19 -0800)]
Merge branch 'mds'
Sage Weil [Sun, 6 Mar 2011 05:27:13 +0000 (21:27 -0800)]
Merge branch 'stable'
Sage Weil [Sun, 6 Mar 2011 05:26:24 +0000 (21:26 -0800)]
tests/cli/osdmaptool: default pg_num changed
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Sun, 6 Mar 2011 04:50:56 +0000 (20:50 -0800)]
testlibrbd: signed return types
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Sun, 6 Mar 2011 04:41:55 +0000 (20:41 -0800)]
filestore: fix signedness so we can handle errors from safe_pread
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Sun, 6 Mar 2011 04:40:55 +0000 (20:40 -0800)]
version: fix const warning
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Wed, 2 Mar 2011 13:29:01 +0000 (05:29 -0800)]
safe_io: fix signed/unsigned comparisons
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Sun, 6 Mar 2011 04:39:24 +0000 (20:39 -0800)]
tests/cli/osdmaptool: default pg_num changed
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Sat, 5 Mar 2011 22:39:09 +0000 (14:39 -0800)]
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>
Sage Weil [Sat, 5 Mar 2011 22:38:24 +0000 (14:38 -0800)]
crush: fix memory leak
Reported-by: Alexander Lyakas <alex.bolshoy@gmail.com>
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Sat, 5 Mar 2011 23:27:25 +0000 (15:27 -0800)]
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
Sage Weil [Fri, 4 Mar 2011 22:40:16 +0000 (14:40 -0800)]
v0.25
Sage Weil [Sat, 5 Mar 2011 21:29:20 +0000 (13:29 -0800)]
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
Sage Weil [Fri, 4 Mar 2011 23:24:46 +0000 (15:24 -0800)]
config: back to 6 pg bits for now
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Fri, 4 Mar 2011 22:19:40 +0000 (14:19 -0800)]
Merge branch 'osd_recovery' into next
Yehuda Sadeh [Fri, 4 Mar 2011 22:25:47 +0000 (14:25 -0800)]
rgw: put object request returns etag
Sage Weil [Fri, 4 Mar 2011 22:19:33 +0000 (14:19 -0800)]
test_missing_unfound: asdf
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Fri, 4 Mar 2011 22:00:02 +0000 (14:00 -0800)]
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>
Sage Weil [Fri, 4 Mar 2011 21:59:24 +0000 (13:59 -0800)]
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>
Sage Weil [Fri, 4 Mar 2011 17:39:59 +0000 (09:39 -0800)]
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>
Sage Weil [Fri, 4 Mar 2011 17:38:47 +0000 (09:38 -0800)]
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>
Colin Patrick McCabe [Fri, 4 Mar 2011 17:30:13 +0000 (09:30 -0800)]
do_autogen.sh: add -P option
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Sage Weil [Fri, 4 Mar 2011 23:46:08 +0000 (15:46 -0800)]
osd: debug the hell out of heartbeat thread
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Colin Patrick McCabe [Thu, 3 Mar 2011 22:54:15 +0000 (14:54 -0800)]
Fix test/signals.cc
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Sage Weil [Fri, 4 Mar 2011 05:34:26 +0000 (21:34 -0800)]
librados: cosmetic header changes
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Josh Durgin [Thu, 3 Mar 2011 16:44:27 +0000 (08:44 -0800)]
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>
Josh Durgin [Thu, 3 Mar 2011 16:42:34 +0000 (08:42 -0800)]
librbd: fix error message and unnamed constant
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Josh Durgin [Wed, 2 Mar 2011 18:11:55 +0000 (10:11 -0800)]
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>
Josh Durgin [Wed, 2 Mar 2011 00:03:01 +0000 (16:03 -0800)]
librados: remove unused member of IoCtx
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Yehuda Sadeh [Tue, 1 Mar 2011 23:18:40 +0000 (15:18 -0800)]
librados: IoCtx destructor should put reference only if initalized
Yehuda Sadeh [Tue, 1 Mar 2011 22:20:11 +0000 (14:20 -0800)]
librados: can set up object locator
Colin Patrick McCabe [Tue, 1 Mar 2011 14:49:34 +0000 (06:49 -0800)]
librados:rados_ioctx_stat -> rados_ioctx_pool_stat
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Yehuda Sadeh [Tue, 1 Mar 2011 21:52:43 +0000 (13:52 -0800)]
object_locator: fix clear()
Colin Patrick McCabe [Tue, 1 Mar 2011 14:05:41 +0000 (06:05 -0800)]
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>
Josh Durgin [Tue, 1 Mar 2011 19:47:26 +0000 (11:47 -0800)]
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>
Josh Durgin [Tue, 1 Mar 2011 19:35:41 +0000 (11:35 -0800)]
librados: decrement refcount of old io_ctx_impl in assignment operator
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Colin Patrick McCabe [Tue, 1 Mar 2011 12:15:58 +0000 (04:15 -0800)]
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>
Colin Patrick McCabe [Tue, 1 Mar 2011 11:38:44 +0000 (03:38 -0800)]
Rename radios_ioctx_{open,close} to create/destroy
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
Colin Patrick McCabe [Tue, 1 Mar 2011 11:25:18 +0000 (03:25 -0800)]
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>
Tommi Virtanen [Tue, 1 Mar 2011 00:03:35 +0000 (16:03 -0800)]
Make git ignore core files.
Tommi Virtanen [Tue, 1 Mar 2011 00:03:17 +0000 (16:03 -0800)]
Make git ignore python generated files.
Tommi Virtanen [Mon, 28 Feb 2011 21:04:00 +0000 (13:04 -0800)]
librados: Crashed on shutdown if connect was never called.
Add a trivial unit test to trigger this.
Colin Patrick McCabe [Mon, 28 Feb 2011 13:58:03 +0000 (05:58 -0800)]
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>
Colin Patrick McCabe [Mon, 28 Feb 2011 13:59:51 +0000 (05:59 -0800)]
librados: don't create unused SnapContext objs
There were some unused temporary variables hanging around.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>