Commit Graph

26073 Commits

Author SHA1 Message Date
Danny Al-Gaaf
49033b69e1 objclass/class_debug.cc: reduce scope of 'n' in cls_log()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:10 +02:00
Danny Al-Gaaf
297b573d93 tools/ceph-filestore-dump.cc: reduce scope of 'r' in export_files()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:10 +02:00
Danny Al-Gaaf
a634a13d46 test/system/systest_runnable.cc: reduce scope of 'ret' in join()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:10 +02:00
Danny Al-Gaaf
6147df4868 test/system/st_rados_list_objects.cc: reduce scope of 'ret' in run()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:10 +02:00
Danny Al-Gaaf
56f8c36474 test/system/st_rados_create_pool.cc_ reduce scope of 'ret' in run()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:10 +02:00
Danny Al-Gaaf
d226d9c36c test/system/rados_list_parallel.cc: reduce scope of 'ret'
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:09 +02:00
Danny Al-Gaaf
8f486f0bd1 test/librbd/test_librbd.cc: reduce scope of several variables
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:09 +02:00
Danny Al-Gaaf
95bf066b66 rgw/rgw_tools.cc: reduce scope of 'ret' in rgw_get_obj()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:09 +02:00
Danny Al-Gaaf
492553b3c6 rgw/rgw_common.cc: reduce scope of 'end' in two cases
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:09 +02:00
Danny Al-Gaaf
682f1076aa rgw/rgw_bucket.cc: reduce scope of 'max' in rgw_remove_bucket()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:09 +02:00
Danny Al-Gaaf
9d6e086605 rgw/rgw_admin.cc: reduce scope of 'ret'
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:09 +02:00
Danny Al-Gaaf
a3eeb9f8d4 rgw/rgw_acl_s3.cc: remove local variable 'ret' from create_from_headers()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:09 +02:00
Danny Al-Gaaf
b9fe22b33c rbd_fuse/rbd-fuse.c: reduce scope of some variables in open_rbd_image()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:20:09 +02:00
Danny Al-Gaaf
393de3257f osdc/Objecter.cc: reduce scope of skipped_map
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:16:43 +02:00
Danny Al-Gaaf
84ce4e9b4e os/chain_xattr.cc: reduce scope of local variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:16:37 +02:00
Danny Al-Gaaf
829fdd4139 src/os/LFNIndex.cc: reduce scope of suffix_len
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:16:33 +02:00
Danny Al-Gaaf
8254072b91 os/HashIndex.cc: reduce scope of a local variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:16:24 +02:00
Danny Al-Gaaf
ea7d8a4df8 os/FileStore.cc: reduce scope of a local variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:16:21 +02:00
Danny Al-Gaaf
2c60bc1ea6 src/os/FlatIndex.cc: reduce scope of suffix_len
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:16:07 +02:00
Danny Al-Gaaf
442752828a src/os/DBObjectMap.cc: reduce scope of some variables
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:16:03 +02:00
Danny Al-Gaaf
14871d0566 mount/mount.ceph.c: reduce scope of 'skip' in parse_options()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:15:51 +02:00
Danny Al-Gaaf
eb808cff39 src/mds/flock.cc: reduce scope of old_lock_to_end in two cases
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:15:47 +02:00
Danny Al-Gaaf
ce84a226d3 mds/Locker.cc: reduce scope of forced_change_max
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:15:40 +02:00
Danny Al-Gaaf
e7d47827f0 src/crush/mapper.c: reduce scope of some local variables
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:15:13 +02:00
Danny Al-Gaaf
e0f1084580 auth/Crypto.cc: reduce scope of local variable in_buf
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:11:08 +02:00
Danny Al-Gaaf
aa11c68fdd rgw/rgw_rados.cc: remove not needed code
Fix for cppcheck warning:
[src/rgw/rgw_rados.cc:2390]: (warning) Assignment of function
  parameter has no effect outside the function.

Assignment of if_nomatch_str.c_str() to if_nomatch has no
effect outside the function and the functions isn't used
inside the function after the assignment.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:11:02 +02:00
Danny Al-Gaaf
cd48f57039 rgw/rgw_gc.cc: fix possible NULL pointer dereference
Fix/silence cppcheck warning:
[src/rgw/rgw_gc.cc:185] -> [src/rgw/rgw_gc.cc:181]: (error) Possible
  null pointer dereference: ctx - otherwise it is redundant to check
  it against null.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:10:42 +02:00
Danny Al-Gaaf
403bfa43da osd/OSD.cc: remove unused variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-16 14:04:18 +02:00
Sage Weil
2a441aa28a Merge pull request #279 from ceph/wip-libcephfs-env
Reviewed-by: Greg Farnum <greg@inktank.com>
2013-05-14 17:06:53 -07:00
John Wilkins
8f3fb97256 Added OSD to glossary, removed parenthetical.
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-14 17:06:12 -07:00
John Wilkins
f36ec02f93 doc: Updated architecture document.
fixes: #2968

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
2013-05-14 17:05:43 -07:00
David Zafman
624c8cc30f Merge branch 'wip-5049'
Reviewed-by: Sam Just <sam.just@inktank.com>
2013-05-14 16:38:50 -07:00
David Zafman
48e89b5171 OSD: scrub interval checking
Do arithmetic so large intervals don't wrap
Fix log messages to reflect the change and improve output
Add message when skipping scrub due to load

fixes: #5049

Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-05-14 16:28:45 -07:00
David Zafman
1f4e7a5aaf OSD: Don't scrub newly created PGs until min interval
Set initial values for last_scrub_stamp, last_deep_scrub_stamp

fixes: #5050, #5051

Signed-off-by: David Zafman <david.zafman@inktank.com>
2013-05-14 16:28:40 -07:00
Sage Weil
7b93d28757 doc/release-notes: v0.62
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-14 16:02:20 -07:00
Gary Lowell
2ba167be0e Merge branch 'next' 2013-05-14 15:38:24 -07:00
athanatos
5ff703d60a Merge pull request #283 from dachary/wip-5058
internal documentation proofreading

Reviewed-by: Sam Just <sam.just@inktank.com>
2013-05-14 15:28:45 -07:00
Sage Weil
52b0438c66 doc/rados/configuration: fix [mon] osd min down report* config docs
Fix other osd -> mon section name, and note the old config value name prior
to v0.62.

Fixes: #5044.
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-14 14:02:27 -07:00
Loic Dachary
2a4425af0e reflect recent changes in the pg deletion logic
No need to wait on DeletingStateRef for flush d3dd99b725
Fix typos

http://tracker.ceph.com/issues/5058 refs #5058

Signed-off-by: Loic Dachary <loic@dachary.org>
2013-05-14 22:46:37 +02:00
Loic Dachary
1c53991e4c fix typos and add hyperlink to peering
s/;/:/
s/up_acting_affected/acting_up_affected/
Add relative link to ../../peering

http://tracker.ceph.com/issues/5058 refs #5058

Signed-off-by: Loic Dachary <loic@dachary.org>
2013-05-14 22:46:37 +02:00
Loic Dachary
b7d4012c06 typo s/come/some/
http://tracker.ceph.com/issues/5058 refs #5058

Signed-off-by: Loic Dachary <loic@dachary.org>
2013-05-14 22:46:36 +02:00
Loic Dachary
dbddffef06 update op added to a waiting queue or discarded
The decision to discard an op happens either in OSD or in PG.
The operation queue goes to a single OpWQ object if waiting_map does not impose a delay op_queue.
The decision to add an op to a waiting queue regardless of its type is updated.
The decision to add a CEPH_MSG_OSD_OP to a waiting queue is described in full.

http://tracker.ceph.com/issues/5058 refs #5058

Signed-off-by: Loic Dachary <loic@dachary.org>
2013-05-14 22:44:58 +02:00
Sage Weil
afeb8f2d52 md/Sever.cc: fix straydn assert
From fb222a0a1c, we only know straydn is
non-null if oldin is non-null.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-14 10:31:27 -07:00
Sage Weil
29d8ec4ecd Merge pull request #285 from dalgaaf/wip-da-CID-fixes-2-v3
Reviewed-by: Sage Weil <sage@inktank.com>
2013-05-14 10:30:20 -07:00
Danny Al-Gaaf
e69257eaee rgw/rgw_user.cc: fix possible NULL pointer dereference
CID 1019559 (#1 of 1): Dereference after null check (FORWARD_NULL)
  var_deref_model: Passing null pointer "usr" to function
  "RGWUser::get_store()", which dereferences it.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-14 19:20:29 +02:00
Danny Al-Gaaf
d69290219d mds/Server.cc: fix possible NULL pointer dereference
Assert if straydn is NULL.

CID 1019554 (#2 of 2): Dereference after null check (FORWARD_NULL)
  var_deref_model: Passing null pointer "straydn" to function
  "MDSCacheObject::is_auth() const", which dereferences it.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-14 19:15:23 +02:00
Danny Al-Gaaf
fb222a0a1c mds/Server.cc: fix possible NULL pointer dereference
Assert of straydn is NULL here.

CID 1019558 (#1 of 1): Dereference after null check (FORWARD_NULL)
  var_deref_model: Passing null pointer "straydn" to function
  "CDentry::get_dir() const", which dereferences it.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-14 19:07:29 +02:00
Danny Al-Gaaf
c87788b69b mds/Server.cc: fix possible NULL pointer dereference
Assert if destdn == NULL.

CID 1019557 (#1 of 1): Dereference after null check (FORWARD_NULL)
  var_deref_model: Passing null pointer "destdn" to function
  "CDentry::get_dir() const", which dereferences it.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-14 19:02:20 +02:00
Danny Al-Gaaf
088455f85e librados/AioCompletionImpl.h: add missing Lock
Add missing Lock around code changing AioCompletionImpl::rval/ack and safe
in C_AioCompleteAndSafe::finish().

CID 1019565 (#1 of 1): Data race condition (MISSING_LOCK)
  missing_lock: Accessing "this->c->rval" ("_ZN8librados17AioCompletionImplE.rval")
  requires the "Mutex._m" lock.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-14 18:50:09 +02:00
Danny Al-Gaaf
8a52350dd8 src/dupstore.cc: check return value of list_collections()
CID 1019545 (#1 of 1): Unchecked return value (CHECKED_RETURN)
  check_return: Calling function "ObjectStore::list_collections
  (std::vector<coll_t, std::allocator<coll_t> > &)" without
  checking return value (as is done elsewhere 5 out of 6 times).

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-05-14 18:44:06 +02:00