Commit Graph

10899 Commits

Author SHA1 Message Date
Sage Weil
9520917de4 mds: drop remove_client_lease return value
Unused
2010-07-23 15:50:41 -07:00
Sage Weil
74fcb6bf78 mds: fix dentry lease mask/lockid disconnect
There is only one lock here, no need to be tricky with the mask.
2010-07-23 15:50:39 -07:00
Sage Weil
c33171c0aa mds: no return value for issue_client_lease()
Return value is unused.  Also drop obsolete inode lease method declaration.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-23 15:50:37 -07:00
Sage Weil
34957ff36b mds: fix lease issue mask
We define 1 to be the only lease "mask" we currently support (for dentry)
and divorce ourselves from the CEPH_LOCK namespace for this purpose.  We
did this in c8d7c970e8, but screwed up the
issue function.  Fix the caller, and pay attention to @mask here.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-23 15:50:34 -07:00
Sage Weil
15abbfbe5c mds: create leases with non-zero seq
We want to avoid the situation:

- mds issues lease, seq 0
- mds times out lease, seq 0
- client sends seq 0 release
- mds issues new lease, seq 0 (again.. poor choice of seq#)
- mds processes client lease seq 0 release (bad)
2010-07-23 15:50:32 -07:00
Sage Weil
92273f70ae osd: log/debug hb set changes 2010-07-23 15:50:28 -07:00
Sage Weil
b33b53b160 osdmap: recalc num_osds after applying incremental 2010-07-23 15:50:23 -07:00
Sage Weil
4ab66fa4db osd: clean_up_local should ignore snapped, snapdir objects
The snap_trimmer is responsible for removing any/all snap objects.

snapdir only exists if snapped objects exist and head doesn't, so it will
get cleaned up when the snapped object(s) do.
2010-07-23 15:50:20 -07:00
Sage Weil
fdd13cb204 filestore: make stat print correct errno 2010-07-23 15:50:12 -07:00
Sage Weil
622e9b479e osd: simplify heartbeat checks
- Only check heartbeats when we have heartbeat_lock and osdmap rdlocked,
and thus _know_ heartbeat info and map are in sync.  Drop unnecessary
consistency checks.
- Check heartbeats in tick(), since the heartbeat thread may miss it if
it's unlucky.
2010-07-23 15:50:05 -07:00
Sage Weil
9e3650becd osd: red is good enough; don't blink 2010-07-23 15:49:58 -07:00
Greg Farnum
9c1ceb1e14 mds: only try and lssnaps on a dir for as long as it's been around 2010-07-23 14:37:48 -07:00
Greg Farnum
7bba8447c4 qa: runoncfuse shouldn't start cfuse in background any more. 2010-07-23 14:37:48 -07:00
Greg Farnum
f731d4d65b mds: fix snap lookups in CInode encoding 2010-07-23 14:37:48 -07:00
Sage Weil
ff53e9b33d mon: don't crash on 'osd pool set' command 2010-07-23 13:21:36 -07:00
Sage Weil
e986721b06 osd: zero ondisklog pointers when starting pg deletion
This fixes a problem where the osd stops part way through pg cleanup.  It
seens the old ondisklog bounds, but then fails to load the log, and crashes
on startup.

We just need to zero the ondisklog bounds when we zero the log.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-23 11:46:11 -07:00
Yehuda Sadeh
16c0fea256 librados: remove use of snapid_t 2010-07-23 11:43:25 -07:00
Sage Weil
6b7693bf90 objecter: default debug level 0 (no 'laggy' messages) 2010-07-23 09:42:51 -07:00
Sage Weil
d665d4949d initscripts: use $type.$id, not $name, when possible 2010-07-22 14:27:08 -07:00
Sage Weil
de9262e995 initscripts: accept osd0 or osd.0, regardless of what conf uses 2010-07-22 14:26:49 -07:00
Sage Weil
d9a7acbfe3 Merge remote branch 'origin/large_objects' into unstable 2010-07-22 14:17:56 -07:00
Sage Weil
ad1cd81fd0 mds: be careful obeying REQRDLOCK
Only do a simple_sync() if we are stable, auth, and not already sync.  The
client request can race with other state changes, so be careful.  The
client will also retry on any state change, so we can safely ignore if
things don't look quite right.

This fxes crash:
mds/Locker.cc: In function 'bool Locker::simple_sync(SimpleLock*, bool*)':
mds/Locker.cc:2592: FAILED assert(0)
1: (Locker::handle_file_lock(ScatterLock*, MLock*)+0x2a8) [0x57d328]
2: (MDS::_dispatch(Message*)+0x2165) [0x4a11d5]
3: (MDS::ms_dispatch(Message*)+0x6d) [0x4a169d]
4: (SimpleMessenger::dispatch_entry()+0x733) [0x47c903]
5: (SimpleMessenger::DispatchThread::entry()+0x1c) [0x474bac]
6: (Thread::_entry_func(void*)+0xa) [0x48748a]
7: /lib/libpthread.so.0 [0x7f8af92ff73a]
8: (clone()+0x6d) [0x7f8af852569d]
2010-07-22 12:01:11 -07:00
Sage Weil
b8c1bda8ab debian: fix typo in libcrush description
Reported-by: Wido
2010-07-22 10:53:14 -07:00
Sage Weil
1271fdd0e3 mds: initialize snaprealm created, current_parent_since on creation
Need to initialize created and current_parent_since on new snaprealms
when they are created, or else we get incorrect results from the likes of
SnapRealm::get_snap_info() (e.g., parent snaps from before we were
created).
2010-07-21 13:30:21 -07:00
Sage Weil
6aa32f8c26 Merge remote branch 'origin/debian' into unstable 2010-07-21 13:30:02 -07:00
Yehuda Sadeh
93a2ba8ea2 rgw: fix calls to finish_get_obj() with uninitialized handle 2010-07-21 11:03:36 -07:00
Sage Weil
0bd671f734 debian: drop unused *.modules.in 2010-07-21 09:31:57 -07:00
Sage Weil
68fc3fc884 debian: no more ceph-kclient-soruce 2010-07-21 09:27:49 -07:00
Sage Weil
dd9d23b3a1 debian: cleanup from Clint Byrum <clint@ubuntu.com>
With a few changes by me (changelog, copyright clarification)
2010-07-21 09:27:49 -07:00
Sage Weil
ef2ecdab6c fuse.cc: make license GPL
Originally based on Miklos' fusexmp.c, which is GPL.  Keep that license.
LGPL makes no sense here anyway.
2010-07-21 09:27:49 -07:00
Sage Weil
6cb3ea762b mon: specify default new pool size/rule/pg_num in conf 2010-07-20 15:07:12 -07:00
Sage Weil
24c7516700 clean up new pool crush rule values [backward compatible protocol change]
Default to -1 (not 0!), which means 'server default'.
2010-07-20 15:07:12 -07:00
Sage Weil
9ddb6ab27d osd: infer missing map is empty when last_complete==last_update 2010-07-20 13:24:38 -07:00
Sage Weil
e8eec86c98 mon: set/clear pause{rd,wr} osdmap flags 2010-07-20 13:24:38 -07:00
Sage Weil
856999eda4 osd: clear failure_queue when marked down
This prevents bleed through of failures (due to not getting hearbeats, due
to us being marked down) so they don't get sent after we are marked back
up again.

This fixes one possible source of up/down flapping...
2010-07-20 13:24:38 -07:00
Sage Weil
618f7f25db osd: clean up pulling first/complete business 2010-07-20 12:39:42 -07:00
Sage Weil
462476404d osd: push in chunks
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-20 12:30:53 -07:00
Yehuda Sadeh
f3eb96457b rgw: fix content-length reporting
and also some other various issues that came up while at it
2010-07-20 12:13:27 -07:00
Sage Weil
190df1c66f debug: fix log append
ios::ate does not work as advertised!

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-20 10:38:26 -07:00
Sage Weil
538ceedcc8 debug: say 'append' or 'new' when opening log
Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-20 10:36:35 -07:00
Sage Weil
2483096e66 osd: wait for non-existant pools (w/o crashing); clean up handle_op()
Make sure the pool exists before calling OSDMap::raw_pg_to_pg().  Fixes
crash on operations shortly after pg pools are created.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-20 10:25:34 -07:00
Yehuda Sadeh
a0cd80cfbf rgw: fix copy 2010-07-19 17:20:53 -07:00
Yehuda Sadeh
925e209248 rgw: get/put read and write by chunks 2010-07-19 16:50:43 -07:00
Sage Weil
1e30deaaa1 osd: refactor push code
- send_push_op() does a push, nothing else
- push_start() starts a primary->replica push, tracks state
- push_to_replica() ensures we push head first, calculates cloning, etc.
2010-07-19 16:22:52 -07:00
Yehuda Sadeh
eed7f726c5 rgw: lay groundwork for chunky read/write 2010-07-19 16:20:54 -07:00
Sage Weil
1d2018320d osd: recover degraded objects _before_ modifying it
This will slow down writes to degraded objects because we will wait for it
to recover before applying the write.  OTOH it will be robust in the case
of large objects.  We can optimize the small object update (and overwrite)
cases later.

Signed-off-by: Sage Weil <sage@newdream.net>
2010-07-19 14:44:09 -07:00
Sage Weil
2e521b82cc osd: make client op version actual at_version
I.e. this should take into account any cloning.  So set it after we call
prepare_transaction, not before.
2010-07-19 13:42:31 -07:00
Sage Weil
f7cc6e8f9d osd: fix subop version in snaptrimmer
The at_version should end equal to last_update, not +1.
2010-07-19 13:42:30 -07:00
Sage Weil
71ff557f32 osd: observe osd_recovery_max_chunk when pulling objects to primary 2010-07-19 13:08:10 -07:00
Sage Weil
be8359ad22 intervalset: implement span_of() 2010-07-19 13:06:48 -07:00