]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Greg Farnum [Thu, 12 Jan 2012 20:42:21 +0000 (12:42 -0800)]
msgr: Document recv_stamp and add a dispatch_stamp and throttle_wait.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Greg Farnum [Thu, 12 Jan 2012 19:27:55 +0000 (11:27 -0800)]
Revert "common/Throttle: Remove unused return type on Throttle::get()"
This reverts commit
4549501c9b0968ce4243e06ff7e9ef03b19de667 .
We're about to use it to avoid a time lookup if possible.
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Greg Farnum [Wed, 25 Jan 2012 23:58:49 +0000 (15:58 -0800)]
osd: remove unused PG::block_if_wrlocked declaration
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Greg Farnum [Wed, 25 Jan 2012 23:33:28 +0000 (15:33 -0800)]
osd: remove the unused require_current_map
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Yehuda Sadeh [Thu, 19 Jan 2012 17:11:09 +0000 (09:11 -0800)]
rgw: fix warning
Signed-off-by: Yehuda Sadeh <yehuda.sadeh@dreamhost.com>
Sage Weil [Thu, 19 Jan 2012 04:41:04 +0000 (20:41 -0800)]
Merge remote branch 'gh/wip-op-data-mux'
Reviewed-by: Greg Farnum <greg.farnum@dreamhost.com>
Reviewed-by: Yehuda Sadeh <yehuda.sadeh@dreamhost.com>
Neil Horman [Wed, 18 Jan 2012 17:00:14 +0000 (12:00 -0500)]
Convert mount.ceph to use KEY_SPEC_PROCESS_KEYRING
having mount.ceph use KEY_SPEC_USER_KEYRING to pass keys to the kernel has
several disadvantages:
1) It leaves the key setting in the uid_keyring, which is reachable from the
session keyring via a link (see keyctl list <root session keyring ref>). This
means its accessible to other processes in the same session that don't need
access to it, even after the kernel is done with it.
2) The user keyring has some very counter-intuitive semantics as far as keyring
permissions goes. The user keyring is access via a link from the session
keyring, which a process may not have permission to access in some situations.
For instance if mount.ceph is executed via su without having started a new
session, mount.ceph will not have access to the uid keyring unless the calling
proces (in this case su) has granted access permission. The result is a -EPERM
error when executing mount.ceph to a cephx enabled server. If the same command
is attempted in a new root session (e.g. su - or su -l), the mount command will
work fine
Switching the mount.ceph command to use the KEY_SPEC_PROCESS_KEYRING solves both
of these problems. By using this keyring, accessibility is guaranteed because
its added and accessed in the same process context both in user space and the
kernel, assuring aceesability, despite the session specifics. It also ensures
that the key will get cleaned up after the mount.ceph process exits
automatically, since there is no longer a need for it (the kernel clones the key
during the mount process and releases it on unmount).
I've tested this here on my local ceph cluster, and it works properly under both
su and su -l .
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
CC: Josh Durgin <josh.durgin@dreamhost.com>
Yehuda Sadeh [Wed, 18 Jan 2012 19:46:24 +0000 (11:46 -0800)]
Merge branch 'wip-rgw-simplelog'
Yehuda Sadeh [Wed, 18 Jan 2012 19:37:59 +0000 (11:37 -0800)]
rgw: adjust high level debug level
setting it to 2 instead of 1
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Sage Weil [Wed, 18 Jan 2012 19:25:13 +0000 (11:25 -0800)]
Merge remote branch 'gh/wip-rgw-simplelog'
* gh/wip-rgw-simplelog:
rgw: add timestamp to high level log
rgw: log host_bucket, http status
rgw: simple request logging
Reviewed-by: Sage Weil <sage@newdream.net>
Yehuda Sadeh [Wed, 18 Jan 2012 07:42:08 +0000 (23:42 -0800)]
rgw: fix intent log processing
Intent log processing was completely broken. First, it wasn't
parsing the date correctly (due to failure to initalize strptime).
Second, it was trying to load the entire log to memory in one
piece (and in a racy way). This fixed bug #1948.
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Yehuda Sadeh [Wed, 18 Jan 2012 07:40:52 +0000 (23:40 -0800)]
rgw: initialize tm before calling strptime
strptime assumes tm is already initialized.
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Sage Weil [Wed, 18 Jan 2012 05:59:32 +0000 (21:59 -0800)]
objecter: some helpful multiop result debug output
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 18 Jan 2012 05:32:11 +0000 (21:32 -0800)]
objecter: make getxattrs set rval on decode error
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 18 Jan 2012 05:31:56 +0000 (21:31 -0800)]
objecter: add stat ops to op vector!
They work better that way.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 18 Jan 2012 05:10:05 +0000 (21:10 -0800)]
objecter: gift reply data to outbl _after_ demuxing
Divvy up the result bl first, then gift the whole shebang to outbl. If
we gift it first, there's nothing to demux (since we move intead of copy
the bufferlist ptrs).
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Wed, 18 Jan 2012 01:33:57 +0000 (17:33 -0800)]
Merge remote branch 'gh/master' into wip-op-data-mux
Sage Weil [Wed, 18 Jan 2012 01:33:37 +0000 (17:33 -0800)]
osd: make in/outdata split/merge helpers static OSDOp methods
Avoid defining new global functions.
Also add basic doxygen descriptions.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Yehuda Sadeh [Tue, 17 Jan 2012 23:10:58 +0000 (15:10 -0800)]
rgw: log_show_next() fix reading of the next buffer
Bug #1939. Failed reading large logs.
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Yehuda Sadeh [Tue, 17 Jan 2012 23:05:38 +0000 (15:05 -0800)]
Merge branch 'master' of ssh://github.com/NewDreamNetwork/ceph
Sage Weil [Tue, 17 Jan 2012 22:23:58 +0000 (14:23 -0800)]
Merge remote branch 'gh/wip-backfill'
Reviewed-by: Samuel Just <samuel.just@dreamhost.com>
Conflicts:
src/ceph_mds.cc
src/ceph_osd.cc
Sage Weil [Tue, 17 Jan 2012 19:41:15 +0000 (11:41 -0800)]
filestore: overwrite fsid during --mkfs
This mainly matters because read_fsid() now looks at the file size to
determine if it's an old- or new-style fsid, and not overwriting mean a
downgrade confuses things. Not that anyone would do that, but...
Signed-off-by: Sage Weil <sage@newdream.net>
Yehuda Sadeh [Tue, 17 Jan 2012 21:39:43 +0000 (13:39 -0800)]
rgw: reset timestamp when processing starts
otherwise we'd count also the time waiting for the request.
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Andrey Stepachev [Fri, 13 Jan 2012 15:12:24 +0000 (19:12 +0400)]
hadoop: fix unix timestamp calculation in hadoop lib
Hadoop always see wrong dates due of wrong timestamp calculation. Properly
convert nanoseconds to millis when adding.
Possibly fixes #1666.
Signed-off-by: Andrey Stepachev <octo@yandex-team.ru>
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Andrey Stepachev [Fri, 13 Jan 2012 11:58:36 +0000 (15:58 +0400)]
hadoop: check for valid filehandler, before using in next calls
In case of nonexistent file, calling Client::replication()
triggers assert.
Signed-off-by: Andrey Stepachev <octo@yandex-team.ru>
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Greg Farnum [Tue, 10 Jan 2012 19:33:20 +0000 (11:33 -0800)]
doc: update control file for setting pg num on pool create
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Sage Weil [Tue, 17 Jan 2012 19:43:04 +0000 (11:43 -0800)]
TestRados: fix {min,max}_stride_size initialization
Signed-off-by: Sage Weil <sage@newdream.net>
Yehuda Sadeh [Tue, 17 Jan 2012 18:54:57 +0000 (10:54 -0800)]
Merge branch 'master' of ssh://ceph.newdream.net/git/ceph
Sage Weil [Tue, 17 Jan 2012 18:51:00 +0000 (10:51 -0800)]
osd: fix bind error checks
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Tue, 17 Jan 2012 18:44:17 +0000 (10:44 -0800)]
Makefile: fix testkeys non-tcmalloc linkage
Signed-off-by: Sage Weil <sage@newdream.net>
Yehuda Sadeh [Tue, 17 Jan 2012 17:54:31 +0000 (09:54 -0800)]
rgw: add timestamp to high level log
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Yehuda Sadeh [Tue, 17 Jan 2012 01:46:49 +0000 (17:46 -0800)]
rgw: log host_bucket, http status
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Yehuda Sadeh [Tue, 17 Jan 2012 01:03:19 +0000 (17:03 -0800)]
rgw: simple request logging
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Sage Weil [Mon, 16 Jan 2012 20:00:55 +0000 (12:00 -0800)]
mds: abort startup if we fail to bind
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Mon, 16 Jan 2012 19:54:26 +0000 (11:54 -0800)]
osd: abort on startup if we fail to bind to a port
Signed-off-by: Sage Weil <sage@newdream.net>
Alex Elder [Tue, 17 Jan 2012 16:21:16 +0000 (10:21 -0600)]
ceph: fix "run_uml.sh" script
Last-minute cleverness prior to checkin broke the "run-uml.sh" script.
Rearange where a few definitions are done to make it work again.
Signed-off-by: Alex Elder <elder@dreamhost.com>
Sage Weil [Tue, 17 Jan 2012 00:54:24 +0000 (16:54 -0800)]
TestRados: implement max_seconds, reimplement argument parsing
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Tue, 17 Jan 2012 00:22:44 +0000 (16:22 -0800)]
RadosModel: prefix line with m_op
So we can guage progress...
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Tue, 17 Jan 2012 00:16:08 +0000 (16:16 -0800)]
mds: fix uninitialized value in MClientLease::h
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Mon, 16 Jan 2012 22:38:37 +0000 (14:38 -0800)]
Merge remote branch 'gh/master' into wip-op-data-mux
Sage Weil [Mon, 16 Jan 2012 22:04:46 +0000 (14:04 -0800)]
msgr: move operator<< for sockaddr_storage to msg_types.cc
tcp.{cc,h} aren't built/linked cleanly.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Mon, 16 Jan 2012 21:26:01 +0000 (13:26 -0800)]
qa/workunits/rados/load-gen-mix.sh
10k objects, not 100k!
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Mon, 16 Jan 2012 21:25:46 +0000 (13:25 -0800)]
qa: rados load-gen: use rbd pool
No replay interval.
Sage Weil [Mon, 16 Jan 2012 18:30:38 +0000 (10:30 -0800)]
rados: load-gen: wake up on reply
So we can send requests more than once per second.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Mon, 16 Jan 2012 18:25:00 +0000 (10:25 -0800)]
rados: fix load-gen 'max-ops'
This was mixed up with min/max_op_len. And max_ops wasn't being used
the initial object creation stage, flooding the OSDs. Or during run().
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Mon, 16 Jan 2012 18:19:19 +0000 (10:19 -0800)]
librados: allow ObjectReadOperation::stat() to get time_t mtime
We can't use the internal utime_t type here.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Mon, 16 Jan 2012 18:16:23 +0000 (10:16 -0800)]
Merge remote branch 'gh/master' into wip-op-data-mux
Conflicts:
src/librados.cc
src/objclass/class_api.cc
src/rgw/rgw_rados.cc
Sage Weil [Mon, 16 Jan 2012 17:46:10 +0000 (09:46 -0800)]
osd: recover_primary_got() -> recover_got()
This is called on primary and replicas alike.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Mon, 16 Jan 2012 17:34:47 +0000 (09:34 -0800)]
osd: clear missing set on replica when restarting backfill
The primary does the same in PG::activate().
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Mon, 16 Jan 2012 05:56:00 +0000 (21:56 -0800)]
msgr: don't assert on socket(2) failure
This can happen if we're connecting to an invalid address. Generate an
error message instead of crashing.
See #1942
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Sun, 15 Jan 2012 05:16:22 +0000 (21:16 -0800)]
msgr: uninline operator<< on sockaddr_storage
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Sat, 14 Jan 2012 01:13:34 +0000 (17:13 -0800)]
osd: rev osd internal cluster protocol
Prevent backfill code from talking to pre-backfill code.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Fri, 13 Jan 2012 23:57:20 +0000 (15:57 -0800)]
Merge branch 'stable'
Sage Weil [Fri, 13 Jan 2012 23:08:17 +0000 (15:08 -0800)]
mds: require OSDREPLYMUX feature bit
We use ObjectOperations now and need a new server to decompose replies
into their constituent components.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Fri, 13 Jan 2012 23:07:28 +0000 (15:07 -0800)]
librados: require OSDREPLYMUX feature
We need this since we now rely on the server telling us rvals and
payload_lens for each OSDOp.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Fri, 13 Jan 2012 23:07:00 +0000 (15:07 -0800)]
define new OSDREPLYMUX feature bit
This corresponds to the OSDs ability to pass payload_len hints and
return values for each OSDOp in the MSDOOpReply messages.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Fri, 13 Jan 2012 22:50:55 +0000 (14:50 -0800)]
objecter: fix add_*() calls to use proper helper
The helper resizes the other vectors; need that everywhere.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Samuel Just [Fri, 13 Jan 2012 19:15:42 +0000 (11:15 -0800)]
ReplicatedPG: munge truncate_seq 1/truncate_size -1 to seq 0/size 0
Truncate with seq 1 and size -1 is a noop.
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Reviewed-by: Sage Weil <sage@newdream.net>
Samuel Just [Fri, 13 Jan 2012 19:15:42 +0000 (11:15 -0800)]
ReplicatedPG: munge truncate_seq 1/truncate_size -1 to seq 0/size 0
Truncate with seq 1 and size -1 is a noop.
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Reviewed-by: Sage Weil <sage@newdream.net>
Yehuda Sadeh [Fri, 13 Jan 2012 20:19:35 +0000 (12:19 -0800)]
rgw: limit object PUT size
Sage Weil [Fri, 13 Jan 2012 17:06:42 +0000 (09:06 -0800)]
objecter: fix up stat, getxattrs handlers
- try/catch
- stat mtime
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Fri, 13 Jan 2012 16:36:13 +0000 (08:36 -0800)]
v0.40
Sage Weil [Fri, 13 Jan 2012 16:35:47 +0000 (08:35 -0800)]
Merge remote branch 'gh/master' into wip-backfill
Sage Weil [Fri, 13 Jan 2012 01:50:44 +0000 (17:50 -0800)]
librados: make new ObjectReadOperations arguments non-optional
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Fri, 13 Jan 2012 01:50:21 +0000 (17:50 -0800)]
rgw: use new librados ObjectReadOperation method arguments
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Samuel Just [Fri, 13 Jan 2012 01:07:35 +0000 (17:07 -0800)]
ReplicatedPG: Update stat accounting for truncate during write
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Reviewed-by: Josh Durgin <josh.durgin@dreamhost.com>
Yehuda Sadeh [Fri, 13 Jan 2012 00:39:30 +0000 (16:39 -0800)]
rgw: wrap cls_cxx_map_* with try/catch around decoding
Yehuda Sadeh [Fri, 13 Jan 2012 00:22:20 +0000 (16:22 -0800)]
rgw: bucket index creation and init in a single operation
Yehuda Sadeh [Fri, 13 Jan 2012 00:17:56 +0000 (16:17 -0800)]
librados: add ObjectOperation::exec
Sage Weil [Thu, 12 Jan 2012 23:25:21 +0000 (15:25 -0800)]
secret: move null check before strlen(key_name) deref
Coverity cid: 98
Signed-off-by: Sage Weil <sage@newdream.net>
Yehuda Sadeh [Fri, 13 Jan 2012 00:10:02 +0000 (16:10 -0800)]
osd: stat op, don't compare in memory state to object
might be that object is being created by the current compound request.
Sage Weil [Thu, 12 Jan 2012 23:42:59 +0000 (15:42 -0800)]
librados: specify read return value pointers in ObjectReadOperation methods
This lets librados do the work of parsing the reply from compound
operations, instead of requiring callers to have knowledge of the internal
encodings.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Thu, 12 Jan 2012 23:42:17 +0000 (15:42 -0800)]
objecter: specify read return values pointers in ObjectOperatio methods
This let's Objecter do the demuxing work for compount read operations.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Mon, 9 Jan 2012 17:30:24 +0000 (09:30 -0800)]
osd: put result data in OSDOp.outdata
The removes an argument from do_osd_ops() and cleans up the surrounding
code a bit.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Mon, 9 Jan 2012 01:23:57 +0000 (17:23 -0800)]
osd: mux/demux OSDOp::outdata in MOSDOpReply
Bump encoding, so that we don't try to demux old encoded messages, which
will likely have OSDOp::payload_len == indata.length().
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Thu, 12 Jan 2012 23:43:43 +0000 (15:43 -0800)]
osd: include return code in OSDOp
This will expose the per-operation return values to the caller.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Thu, 12 Jan 2012 23:09:18 +0000 (15:09 -0800)]
osd: fill in empty item in peer_missing for strays
If we search_for_missing() on a host, make a corresponding entry in our
peer_missing map (if it isn't already there). This ensure we get (empty)
entries for strays, which makes all_unfound_are_queried_or_lost() happy.
Signed-off-by: Sage Weil <sage@newdream.net>
Yehuda Sadeh [Thu, 12 Jan 2012 23:02:09 +0000 (15:02 -0800)]
rgw: don't crash when copying a zero sized object
Samuel Just [Thu, 12 Jan 2012 21:13:47 +0000 (13:13 -0800)]
ReplicatedPG: Do a write even for 0 length operation
Otherwise, a 0 length write to an offset past the end of the file will
cause the internal accounting to reflect the full size of the file, but
not the file on disk.
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Samuel Just [Thu, 12 Jan 2012 21:12:55 +0000 (13:12 -0800)]
ReplicatedPG: fix stat accounting error in CEPH_OSD_OP_WRITEFULL
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Sage Weil [Thu, 12 Jan 2012 20:59:07 +0000 (12:59 -0800)]
qa/client/gen-1774.sh
Capture Alexandre's script for reproducing #1774 here for posterity, until
we write a properly harnessed test for this. Currently, workunits can't
mount/unmount, and we don't have a way to make ceph-fuse drop it's cache.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Thu, 12 Jan 2012 19:46:27 +0000 (11:46 -0800)]
osd: fix PG::Log::copy_up_to() tail
The tail needs to refer to the entry preceeding the first entry in the
log. This updates copy_up_to() to match the basic structure of the other
copy_*() methods.
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Thu, 12 Jan 2012 19:07:02 +0000 (11:07 -0800)]
osd: reset last_complete on backfill restart
Since last_backfill is hobject_t(), we can set this equal to last_update.
This fixes a problem where last_complete preceeds the abbreviated log we
send to the replica below.
Signed-off-by: Sage Weil <sage@newdream.net>
Andrey Stepachev [Thu, 12 Jan 2012 15:26:34 +0000 (19:26 +0400)]
client: avoid taking inode ref in case of nonexistent dir
Signed-off-by: Andrey Stepachev <octo@yandex-team.ru>
Signed-off-by: Sage Weil <sage@newdream.net>
Sage Weil [Thu, 12 Jan 2012 18:35:03 +0000 (10:35 -0800)]
Merge branch 'wip-makefile'
Sage Weil [Thu, 12 Jan 2012 18:01:40 +0000 (10:01 -0800)]
COPYING: note licenses for all files, not just the default
This (mostly) copies debian/copyright for now, but there are format
restrictions for that file. Suggestions for a cleaner way to handle this
are welcome. In the meantime, this is better...
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Sage Weil [Thu, 12 Jan 2012 17:58:21 +0000 (09:58 -0800)]
debian/copyright: note acx_pthread.m4 license
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Kacper Kowalik (Xarthisius) [Sat, 7 Jan 2012 15:10:43 +0000 (16:10 +0100)]
Makefile: Add headers that were omitted in make dist and prevented tests from building
Signed-off-by: Kacper Kowalik (Xarthisius) <xarthisius@gentoo.org>
Kacper Kowalik (Xarthisius) [Sat, 7 Jan 2012 15:02:45 +0000 (16:02 +0100)]
Makefile: Handle corner case of crypto++ correctly
i.e. use c++ while compiling, append to CRYPTO_LIBS instead of LIBS
Signed-off-by: Kacper Kowalik (Xarthisius) <xarthisius@gentoo.org>
Kacper Kowalik (Xarthisius) [Sat, 7 Jan 2012 14:32:17 +0000 (15:32 +0100)]
Makefile: Use ACX_PTHREAD in configure.ac and resulting flags in src/Makefile.am
instead of hardcoded flags
Signed-off-by: Kacper Kowalik (Xarthisius) <xarthisius@gentoo.org>
Kacper Kowalik (Xarthisius) [Sat, 7 Jan 2012 13:43:22 +0000 (14:43 +0100)]
Makefile: Add recent acx_pthread.m4 that has a fix for nostdlib issue.
See http://code.google.com/p/protobuf/issues/detail?id=188 for details
Signed-off-by: Kacper Kowalik (Xarthisius) <xarthisius@gentoo.org>
Samuel Just [Wed, 11 Jan 2012 21:20:17 +0000 (13:20 -0800)]
PG: gen_prefix should grab a map reference atomically
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Yehuda Sadeh [Wed, 11 Jan 2012 21:37:37 +0000 (13:37 -0800)]
rgw-admin: add pool rm and pools list
Yehuda Sadeh [Wed, 11 Jan 2012 21:05:47 +0000 (13:05 -0800)]
rgw-admin: clean up unused commands
Sage Weil [Wed, 11 Jan 2012 21:04:11 +0000 (13:04 -0800)]
osd: bound log we send when restarting backfill
Use the new tunable from
b1da5115aa0756aefa4f0aad36395911e82fce28 .
Signed-off-by: Sage Weil <sage@newdream.net>
Josh Durgin [Wed, 11 Jan 2012 20:20:47 +0000 (12:20 -0800)]
rados.py: avoid getting return value of void function
rados_ioctx_locator_set_key is void. The return value seems to have
been uninitialized, so the tests failed rarely.
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Josh Durgin [Tue, 10 Jan 2012 22:19:12 +0000 (14:19 -0800)]
pg: remove unnecessary guard from calc_trim_to()
The num_objects check doesn't make sense, and could only make trimming
happen more often than it should. Sage did not remember why it was
added.
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Josh Durgin [Tue, 10 Jan 2012 22:16:41 +0000 (14:16 -0800)]
pg: add a configurable lower bound on log size
This helps prevent problems with retrying requests being detected as
duplicates. The problem occurs when the log is trimmed too
aggressively, and an earlier tid is removed from the log, while a
later one is not. The later request will be detected as a duplicate
and responded to immediately, possibly violating the ordering of the
requests.
Partially fixes #1490.
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Sage Weil [Wed, 11 Jan 2012 18:34:35 +0000 (10:34 -0800)]
Merge remote branch 'gh/master' into wip-backfill
Sage Weil [Wed, 11 Jan 2012 14:41:13 +0000 (06:41 -0800)]
osd: limit size of log sent to reset backfill targets
Need to replace magic number with new tunable, once that is merged.
Signed-off-by: Sage Weil <sage@newdream.net>