]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
14 years agomds: revoke client leases on replica dn lock
Sage Weil [Fri, 22 Jul 2011 15:50:45 +0000 (08:50 -0700)]
mds: revoke client leases on replica dn lock

If a replica dentry gets a LOCK message, revoke client leases.  Don't just
wait for them to expire!

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agomds: fix ambiguous check when journaling subtree map
Sage Weil [Fri, 22 Jul 2011 15:41:18 +0000 (08:41 -0700)]
mds: fix ambiguous check when journaling subtree map

We journal the EImportStart--and become ambiguous--when we set the state
to IMPORT_LOGGINGSTART; the subtree auth becomes ambiguous a few stages
before that.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoclient: fix stalls on racing revocations can cap migrations
Sage Weil [Fri, 22 Jul 2011 15:19:30 +0000 (08:19 -0700)]
client: fix stalls on racing revocations can cap migrations

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoosdmaptool: fix clitest
Sage Weil [Thu, 21 Jul 2011 21:28:08 +0000 (14:28 -0700)]
osdmaptool: fix clitest

flags now unconditionally followed by space.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoformatter: escape quoted strings
Sage Weil [Thu, 21 Jul 2011 20:46:06 +0000 (13:46 -0700)]
formatter: escape quoted strings

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomon: rewrite pgmap json dump using Formatter
Sage Weil [Thu, 21 Jul 2011 20:33:20 +0000 (13:33 -0700)]
mon: rewrite pgmap json dump using Formatter

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoformatter: dump float, simplify pending_string stuff
Sage Weil [Thu, 21 Jul 2011 20:33:09 +0000 (13:33 -0700)]
formatter: dump float, simplify pending_string stuff

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoosd: dump osdmap in json
Sage Weil [Thu, 21 Jul 2011 19:54:15 +0000 (12:54 -0700)]
osd: dump osdmap in json

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agocommon: add Formatter class
Sage Weil [Thu, 21 Jul 2011 19:54:00 +0000 (12:54 -0700)]
common: add Formatter class

This is based on the RGW class, but

 - uses a stringstream
 - has an additional dump_stream() method that gives you a usable ostream
 - handles object keys properly

We should merge these implementations.

Not sure if either a stringstream or the raw buffer in the rgw class is
ideal.  Probably output should accumulate on a bufferlist so we can avoid
ever reallocating for big dumps.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoadmin_socket srv:set F_CLOEXEC on listening socket
Colin Patrick McCabe [Thu, 21 Jul 2011 20:15:08 +0000 (13:15 -0700)]
admin_socket srv:set F_CLOEXEC on listening socket

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoadmin_socket: fix uninitialized accept() param
Colin Patrick McCabe [Thu, 21 Jul 2011 20:10:39 +0000 (13:10 -0700)]
admin_socket: fix uninitialized accept() param

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoadmin_socket.cc: Use older sizeof syntax
Colin Patrick McCabe [Thu, 21 Jul 2011 19:31:04 +0000 (12:31 -0700)]
admin_socket.cc: Use older sizeof syntax

Fix compilation for compilers that don't support the
sizeof(type::field_name) syntax.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw: socket path includes full socket name
Yehuda Sadeh [Thu, 21 Jul 2011 19:19:09 +0000 (12:19 -0700)]
rgw: socket path includes full socket name

14 years agoperfcounters: don't output trailing commas in JSON
Colin Patrick McCabe [Thu, 21 Jul 2011 18:05:47 +0000 (11:05 -0700)]
perfcounters: don't output trailing commas in JSON

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAdd line break after add_key() failure message.
Alexandre Oliva [Thu, 21 Jul 2011 08:28:26 +0000 (05:28 -0300)]
Add line break after add_key() failure message.

Signed-off-by: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: more CInode un-inlining
Sage Weil [Wed, 20 Jul 2011 22:58:33 +0000 (15:58 -0700)]
mds: more CInode un-inlining

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: uninline a few things
Sage Weil [Wed, 20 Jul 2011 22:54:33 +0000 (15:54 -0700)]
mds: uninline a few things

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agotest/perf_counters: more renaming
Colin Patrick McCabe [Wed, 20 Jul 2011 23:43:07 +0000 (16:43 -0700)]
test/perf_counters: more renaming

* more renaming

* common/admin_socket_client.cc: use old-fashioned sizeof construct in
case some compilers can't handler newer syntax

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoceph_context: remove set_module_type
Colin Patrick McCabe [Wed, 20 Jul 2011 23:38:12 +0000 (16:38 -0700)]
ceph_context: remove set_module_type

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMerge branch 'wip-proflogger'
Colin Patrick McCabe [Wed, 20 Jul 2011 23:26:18 +0000 (16:26 -0700)]
Merge branch 'wip-proflogger'

Conflicts:
src/common/config.cc
src/common/config.h

14 years agoClient.cc: rename client_logger -> client_counters
Colin Patrick McCabe [Wed, 20 Jul 2011 23:23:35 +0000 (16:23 -0700)]
Client.cc: rename client_logger -> client_counters

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoRename ProfLogger to Perfcounters: part 2
Colin Patrick McCabe [Wed, 20 Jul 2011 23:18:23 +0000 (16:18 -0700)]
Rename ProfLogger to Perfcounters: part 2

Part 2: class names, variable names

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoJournaler: weaken a few asserts to let it pass errors back up.
Greg Farnum [Wed, 20 Jul 2011 22:55:51 +0000 (15:55 -0700)]
Journaler: weaken a few asserts to let it pass errors back up.

Adjust MDLog to handle the possibility of errors appearing.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoC_Gather: fix comment.
Greg Farnum [Wed, 20 Jul 2011 21:30:27 +0000 (14:30 -0700)]
C_Gather: fix comment.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoJournaler: return errors from probing back to callers.
Greg Farnum [Wed, 20 Jul 2011 21:30:16 +0000 (14:30 -0700)]
Journaler: return errors from probing back to callers.

Adjust Dumper to handle the error codes. The other callers already do
so!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agomds: handle EBLACKLISTED in MDCache::do_file_recover; assert on errors
Greg Farnum [Wed, 20 Jul 2011 21:17:17 +0000 (14:17 -0700)]
mds: handle EBLACKLISTED in MDCache::do_file_recover; assert on errors

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoFiler: return error codes from probing up to the calling layer.
Greg Farnum [Wed, 20 Jul 2011 21:16:56 +0000 (14:16 -0700)]
Filer: return error codes from probing up to the calling layer.

This is pretty limited; if you get multiple errors in one batch
of probes it'll only return the last one to get sent back (ENOENT is
excluded). But it's better than nothing.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoRename ProfLogger to PerfCounters
Colin Patrick McCabe [Wed, 20 Jul 2011 22:58:13 +0000 (15:58 -0700)]
Rename ProfLogger to PerfCounters

Part 1: file names

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agore-enable proflogger test
Colin Patrick McCabe [Wed, 20 Jul 2011 22:47:45 +0000 (15:47 -0700)]
re-enable proflogger test

Re-enable the proflogger test. This time, it doesn't test the basic
socket functionality (that is what test/admin_socket.cc is for).

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw: dump is_truncated when listing bucket
Yehuda Sadeh [Wed, 20 Jul 2011 20:24:25 +0000 (13:24 -0700)]
rgw: dump is_truncated when listing bucket

14 years agotest/admin_socket: test message 0
Colin Patrick McCabe [Wed, 20 Jul 2011 22:33:23 +0000 (15:33 -0700)]
test/admin_socket: test message 0

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMove ProfLogger socket code into admin_socket
Colin Patrick McCabe [Wed, 20 Jul 2011 18:27:17 +0000 (11:27 -0700)]
Move ProfLogger socket code into admin_socket

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomds: cinode: Add a little debugging and fix an output
Greg Farnum [Wed, 20 Jul 2011 20:15:33 +0000 (13:15 -0700)]
mds: cinode: Add a little debugging and fix an output

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agomds: Drop locks and auth pins when waiting for freezingtree
Greg Farnum [Wed, 20 Jul 2011 20:15:13 +0000 (13:15 -0700)]
mds: Drop locks and auth pins when waiting for freezingtree

In most cases we don't end up in this branch because there's an escape
if you already have an auth_pin on the ref in question. But when
you've got snapshots going on, you can process the request, block on
a lock state change, commit a snapshot change to the inode, and then
try to process the request again. On this second attempt, though,
you end up with a different ref which you don't have a pin on.
Deadlock and breakage ensues!
To fix, drop all locks and auth pins when you wait -- either
you don't have any to drop anyway, or you've got them on a previous
version of the inode that isn't useful anymore.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agouclient: correctly initialize mseq in flush_snaps.
Greg Farnum [Wed, 20 Jul 2011 17:02:01 +0000 (10:02 -0700)]
uclient: correctly initialize mseq in flush_snaps.

Previously we set mseq=0 unconditionally; this was a mistake that
creeped in via bitrot. Instead, set mseq from the auth cap.
This bug meant that any inodes which had gotten migrated between
MDSes would have their flush_snap messages dropped by the MDS.
Resolves #1324.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agomds: mark rmdir with slaves as a master in journal
Sage Weil [Wed, 20 Jul 2011 20:17:23 +0000 (13:17 -0700)]
mds: mark rmdir with slaves as a master in journal

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: fix rmdir slave commit, rollback
Sage Weil [Wed, 20 Jul 2011 20:06:01 +0000 (13:06 -0700)]
mds: fix rmdir slave commit, rollback

We need to set the slave commit callback to journal a commit or rollback
as needed.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: simplify journaled subtree_map
Sage Weil [Wed, 20 Jul 2011 19:46:19 +0000 (12:46 -0700)]
mds: simplify journaled subtree_map

We may have subtrees split locally due to migrations that are just getting
started or stopped.  Simplify the map we journal to disk.  Among other
things this makes the replay check simple (it can compare against the
current "live" map).

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: add mds_debug_subtrees option
Sage Weil [Wed, 20 Jul 2011 18:08:56 +0000 (11:08 -0700)]
mds: add mds_debug_subtrees option

Verify that replayed ESubtreeMap events match what we have.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: set LogEvent _start_off, drop unused _end_off
Sage Weil [Wed, 20 Jul 2011 17:35:39 +0000 (10:35 -0700)]
mds: set LogEvent _start_off, drop unused _end_off

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: witness rmdir when subtrees are on other hosts
Sage Weil [Fri, 15 Jul 2011 23:36:07 +0000 (16:36 -0700)]
mds: witness rmdir when subtrees are on other hosts

If there is an rmdir with an empty subtree on another mds, we need to witness/
journal that on the dirfrag's auth mds so that replay correctly updates the
subtree map.

This is simpler than the rename witnesses (and the link/unlink ones) because
we aren't actually journaling a modification to any actual metadata; it's just
the subtree map that is changing.

The projection of the subtree map update needs work still, but that is also the
case for renames.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoMerge branch 'wip-rgw-multithreaded'
Yehuda Sadeh [Wed, 20 Jul 2011 17:35:55 +0000 (10:35 -0700)]
Merge branch 'wip-rgw-multithreaded'

14 years agorgw: setup as external server is configurable
Yehuda Sadeh [Wed, 20 Jul 2011 17:35:06 +0000 (10:35 -0700)]
rgw: setup as external server is configurable

14 years agorgw: clearer logging context
Yehuda Sadeh [Wed, 20 Jul 2011 17:01:17 +0000 (10:01 -0700)]
rgw: clearer logging context

14 years agoconfig.cc: fix comments
Colin Patrick McCabe [Wed, 20 Jul 2011 16:31:31 +0000 (09:31 -0700)]
config.cc: fix comments

Fix comments that were reverted to an older version by commit
a51b983a8bbafc455bcd2acd993981ece00abcc7.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoPGMonitor.cc: add force_create_pg command to monitor
Samuel Just [Wed, 20 Jul 2011 00:28:45 +0000 (17:28 -0700)]
PGMonitor.cc: add force_create_pg command to monitor

ceph pg force_create_pg <pgid> will now reset that pg's status to
creating to handle corner cases where no osd has that pg.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agorgw: fix concurrency issue
Yehuda Sadeh [Tue, 19 Jul 2011 21:02:11 +0000 (14:02 -0700)]
rgw: fix concurrency issue

14 years agoProfLogger: add request codes
Colin Patrick McCabe [Tue, 19 Jul 2011 19:05:25 +0000 (12:05 -0700)]
ProfLogger: add request codes

The client now starts by sending a 4-byte request code.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoProfLogger: use double quotes, add commas
Colin Patrick McCabe [Tue, 19 Jul 2011 18:48:21 +0000 (11:48 -0700)]
ProfLogger: use double quotes, add commas

Technically, JSON always uses double quotes, even though Javascript
often uses single quotes for strings. Also add a comma that had been
omitted.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMerge branch 'stable'
Sage Weil [Tue, 19 Jul 2011 18:26:25 +0000 (11:26 -0700)]
Merge branch 'stable'

14 years agomds: clean up file flags to file mode translation
Sage Weil [Tue, 19 Jul 2011 18:25:46 +0000 (11:25 -0700)]
mds: clean up file flags to file mode translation

There was some seriously wrong and ancient cruft in there.  open(2)
specifies that one of O_RDONLY, O_WRONLY, and O_RDWR must always be
specified.  Drop all the crazy.

Linux VFS interprets O_WRONLY|O_RDWR as read+write, so we'll do the same.

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoProfLogger: enable by default for daemons
Colin Patrick McCabe [Tue, 19 Jul 2011 18:08:34 +0000 (11:08 -0700)]
ProfLogger: enable by default for daemons

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoPut each ProfLogger's data into its own object
Colin Patrick McCabe [Tue, 19 Jul 2011 18:04:45 +0000 (11:04 -0700)]
Put each ProfLogger's data into its own object

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoclient: check for invalid file mode
Sage Weil [Tue, 19 Jul 2011 17:38:40 +0000 (10:38 -0700)]
client: check for invalid file mode

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: check for invalid file mode
Sage Weil [Tue, 19 Jul 2011 17:38:34 +0000 (10:38 -0700)]
mds: check for invalid file mode

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agorgw: fix i386 compilation
Yehuda Sadeh [Tue, 19 Jul 2011 17:28:55 +0000 (10:28 -0700)]
rgw: fix i386 compilation

14 years agoconfig: fix compilation in certain environments
Yehuda Sadeh [Tue, 19 Jul 2011 16:43:50 +0000 (09:43 -0700)]
config: fix compilation in certain environments

14 years agomon: fix dump_json quoting
Sage Weil [Tue, 19 Jul 2011 15:36:03 +0000 (08:36 -0700)]
mon: fix dump_json quoting

Signed-off-by: Sage Weil <sage@newdream.net>
14 years agomds: fix O_APPEND file mode calculation
Sage Weil [Tue, 19 Jul 2011 15:33:29 +0000 (08:33 -0700)]
mds: fix O_APPEND file mode calculation

Currently

  fd = open("aaa",O_RDWR|O_CREAT|O_APPEND,0666);

gives us fmode of 1 instead of 3.  We should only infer O_WRONLY if no
other mode is explicitly specified.

Reported-by: Fyodor Ustinov <ufm@ufm.su>
Signed-off-by: Sage Weil <sage@newdream.net>
14 years agoProfLogger: don't start threads until it's safe
Colin Patrick McCabe [Tue, 19 Jul 2011 00:38:43 +0000 (17:38 -0700)]
ProfLogger: don't start threads until it's safe

Introduce a new configuration variable, internal_safe_to_start_threads.
This will be set by common_init_finish once it is safe to start threads.
That will trigger callbacks for any configuration observers listening
for this event.

This is used by ProfLogger to hold off on starting the UNIX domain
socket thread until it is safe to do so.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agovstart.sh: use out/proflog.$name
Colin Patrick McCabe [Tue, 19 Jul 2011 00:25:48 +0000 (17:25 -0700)]
vstart.sh: use out/proflog.$name

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoproflogger: Fix compiler warnings
Colin Patrick McCabe [Tue, 19 Jul 2011 00:21:37 +0000 (17:21 -0700)]
proflogger: Fix compiler warnings

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoproflogger: test multiple profloggers
Colin Patrick McCabe [Tue, 19 Jul 2011 00:18:52 +0000 (17:18 -0700)]
proflogger: test multiple profloggers

Test multiple profloggers, and removing profloggers.

Add a clear function which removes all profloggers.

Make the order in which profloggers are output to JSON determininstic.

Const cleanup on get() methods.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw: use thread pool for rgw work
Yehuda Sadeh [Tue, 19 Jul 2011 00:14:25 +0000 (17:14 -0700)]
rgw: use thread pool for rgw work

14 years agotest/profloger: test fl_avg variables
Colin Patrick McCabe [Mon, 18 Jul 2011 23:53:48 +0000 (16:53 -0700)]
test/profloger: test fl_avg variables

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/proflogger: test JSON formatting a bit
Colin Patrick McCabe [Mon, 18 Jul 2011 23:49:04 +0000 (16:49 -0700)]
test/proflogger: test JSON formatting a bit

Test JSON formatting a bit. Use single quotes in our JSON because that
seems to make things easier.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoproflogger: Unlink our UNIX domain sockets on exit
Colin Patrick McCabe [Mon, 18 Jul 2011 23:31:27 +0000 (16:31 -0700)]
proflogger: Unlink our UNIX domain sockets on exit

When we're exiting normally, we ought to unlink our UNIX domain sockets.

Also fix a bug in ProfLogThread, and enable some more tests.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agomon: pg dump_json
Sage Weil [Mon, 18 Jul 2011 23:29:31 +0000 (16:29 -0700)]
mon: pg dump_json

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorgw: radosgw_admin log show dumps parsable json
Yehuda Sadeh [Mon, 18 Jul 2011 23:10:53 +0000 (16:10 -0700)]
rgw: radosgw_admin log show dumps parsable json

14 years agotest/proflogger.cc: read length of message first
Colin Patrick McCabe [Mon, 18 Jul 2011 22:52:27 +0000 (15:52 -0700)]
test/proflogger.cc: read length of message first

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoProfLogger: write out length of message first
Colin Patrick McCabe [Mon, 18 Jul 2011 22:51:16 +0000 (15:51 -0700)]
ProfLogger: write out length of message first

Write out the length of the message first, so that it's easier to write
clients. Also, serialize ProfLogger instances to memory rather than
directly to the socket, to avoid blocking while holding one of the
ProfLogger locks.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agotest/proflogger: Add TeardownSetup and SimpleTest
Colin Patrick McCabe [Mon, 18 Jul 2011 22:01:28 +0000 (15:01 -0700)]
test/proflogger: Add TeardownSetup and SimpleTest

common/ProfLogger.cc: check the sock_path length.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoAdd test/proflogger.cc, fix ProfLogger::init()
Colin Patrick McCabe [Mon, 18 Jul 2011 21:13:49 +0000 (14:13 -0700)]
Add test/proflogger.cc, fix ProfLogger::init()

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoRework ProfLogger
Colin Patrick McCabe [Mon, 18 Jul 2011 20:53:03 +0000 (13:53 -0700)]
Rework ProfLogger

* Replace existing proflogger config options with "profiling_logger_uri".
This option controls profiling logger sinks.

* ProfLogger: replace file-writing code with code that sends the
information over a UNIX domain socket.

* handle_conf_change is now fully and correctly implemented. We never
read from the md_config_t structure except in this function, so there
are no races. We re-create the thread when the settings change (no need
for SIGHUP, etc.)

* Replace the single big lock with a lock per Proflogger.

* No need for favg any more; just use fset everywhere for floating-point
variables.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoosd: remove unused variables
Greg Farnum [Mon, 18 Jul 2011 20:24:30 +0000 (13:24 -0700)]
osd: remove unused variables

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agomon: remove unused variables
Greg Farnum [Mon, 18 Jul 2011 20:23:52 +0000 (13:23 -0700)]
mon: remove unused variables

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agomds: remove unused variables
Greg Farnum [Mon, 18 Jul 2011 20:23:17 +0000 (13:23 -0700)]
mds: remove unused variables

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agotools: remove unused variables
Greg Farnum [Mon, 18 Jul 2011 20:20:22 +0000 (13:20 -0700)]
tools: remove unused variables

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoclien: rados: bench: remove unused variables
Greg Farnum [Mon, 18 Jul 2011 20:19:57 +0000 (13:19 -0700)]
clien: rados: bench: remove unused variables

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoProfLoggerBuilder: new API
Colin Patrick McCabe [Mon, 18 Jul 2011 20:13:49 +0000 (13:13 -0700)]
ProfLoggerBuilder: new API

There are now three different types of variables that can be created:
u64, float, float average.

The distinction between "inc" and "set" variables is gone, since there
will be no clearing of variables in the new Proflogger.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoReplicatedPG: _rollback_to
Samuel Just [Sat, 16 Jul 2011 00:18:04 +0000 (17:18 -0700)]
ReplicatedPG: _rollback_to

_delete_head modifies clone_overlap and stats incorrectly for
_rollback_to

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agotestsnaps: use self managed snaps and other fixes
Samuel Just [Sat, 16 Jul 2011 00:37:27 +0000 (17:37 -0700)]
testsnaps: use self managed snaps and other fixes

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
14 years agoMakefile: librados-config apparently depends on libcrypto++
Greg Farnum [Mon, 18 Jul 2011 18:28:23 +0000 (11:28 -0700)]
Makefile: librados-config apparently depends on libcrypto++

In newer versions of gcc/ld, librados-config breaks without
the CRYPTO_LIBS.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agogitignore: ignore Eclipse files/folders
Greg Farnum [Mon, 18 Jul 2011 18:27:40 +0000 (11:27 -0700)]
gitignore: ignore Eclipse files/folders

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
14 years agoIntroduce ProfLoggerBuilder
Colin Patrick McCabe [Fri, 15 Jul 2011 23:30:11 +0000 (16:30 -0700)]
Introduce ProfLoggerBuilder

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoProfLogger: don't return val from inc/set/etc.
Colin Patrick McCabe [Fri, 15 Jul 2011 22:35:33 +0000 (15:35 -0700)]
ProfLogger: don't return val from inc/set/etc.

Nobody was using those return values.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoRemove lingering references to g_conf
Colin Patrick McCabe [Mon, 18 Jul 2011 17:37:42 +0000 (10:37 -0700)]
Remove lingering references to g_conf

These were harmless, but silly.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw: fix range dump
Yehuda Sadeh [Mon, 18 Jul 2011 17:06:59 +0000 (10:06 -0700)]
rgw: fix range dump

14 years agomds: fix protocol versions
Sage Weil [Sun, 17 Jul 2011 23:49:59 +0000 (16:49 -0700)]
mds: fix protocol versions

I screwed this up in a928f767b974cd36f4be6ea618c5cec366d28362.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agorgw: multithreaded handling
Yehuda Sadeh [Fri, 15 Jul 2011 23:46:01 +0000 (16:46 -0700)]
rgw: multithreaded handling

14 years agorecalc_op_target must give an error if pool gone
Colin Patrick McCabe [Mon, 27 Jun 2011 18:27:00 +0000 (11:27 -0700)]
recalc_op_target must give an error if pool gone

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoMakefile: remove dup testrados_list_parallel_SOURCES
Sage Weil [Fri, 15 Jul 2011 21:44:45 +0000 (14:44 -0700)]
Makefile: remove dup testrados_list_parallel_SOURCES

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
14 years agoMerge remote branch 'origin/stable'
Sage Weil [Fri, 15 Jul 2011 20:03:14 +0000 (13:03 -0700)]
Merge remote branch 'origin/stable'

14 years agoMerge remote branch 'origin/wip-1287'
Sage Weil [Fri, 15 Jul 2011 20:01:37 +0000 (13:01 -0700)]
Merge remote branch 'origin/wip-1287'

14 years agorgw: multiple fixes, prepare main loop for multithreading
Yehuda Sadeh [Fri, 15 Jul 2011 19:54:32 +0000 (12:54 -0700)]
rgw: multiple fixes, prepare main loop for multithreading

14 years agorgw: fix compilation for certain architectures
Yehuda Sadeh [Fri, 15 Jul 2011 17:57:48 +0000 (10:57 -0700)]
rgw: fix compilation for certain architectures

14 years agobotol_tool: add --xattr argument for PUT
Colin Patrick McCabe [Fri, 15 Jul 2011 16:54:07 +0000 (09:54 -0700)]
botol_tool: add --xattr argument for PUT

boto_tool can now set extended attributes when performing a PUT
operation.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agoboto_tool: add --get-obj-xattr
Colin Patrick McCabe [Fri, 15 Jul 2011 16:41:45 +0000 (09:41 -0700)]
boto_tool: add --get-obj-xattr

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw_op: mime-encode ugly xattrs in PUT
Colin Patrick McCabe [Mon, 11 Jul 2011 23:15:09 +0000 (16:15 -0700)]
rgw_op: mime-encode ugly xattrs in PUT

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
14 years agorgw_common: remove unused variable
Colin Patrick McCabe [Thu, 14 Jul 2011 23:32:18 +0000 (16:32 -0700)]
rgw_common: remove unused variable

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>