1
0
mirror of https://github.com/ceph/ceph synced 2024-12-25 21:03:31 +00:00
Commit Graph

24880 Commits

Author SHA1 Message Date
Sage Weil
53c1c4827e signal_handler: add func to queue an async signal
For example, queue a SIGINT without actually sending the signal via the
OS.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-18 13:10:36 -07:00
Sam Lang
a13ae372c0 client: Remove unecessary set_inode() in _rmdir()
With the recent changes in fc80c1dc6e,
we only allow setting the inode once on a MetaRequest.  This triggered
a bug in _rmdir(), where the parent dir inode passed in and being set
on the MetaRequest, and then also setting the dir inode on the MetaRequest.
Removing the set_inode() using the parent dir inode resolves this issue.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-03-18 12:51:28 -07:00
Danny Al-Gaaf
5e5e1cd45b mon/Session.h: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 15:00:41 +01:00
Danny Al-Gaaf
ffaf286625 test/filestore/workload_generator.cc: prefer prefix ++operator for iterators
Prefer prefix ++operator for iterator. Move the iterator declaration into
the for-loop header since the iterator isn't used outside the loop.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 14:39:09 +01:00
Danny Al-Gaaf
37fd66e009 test/filestore/test_idempotent.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 14:38:49 +01:00
Danny Al-Gaaf
72580516bb test/filestore/test_idempotent.cc: fix ~TestFileStoreState()
Fix interator handling in ~TestFileStoreState(). After std::map::erase()
the used iterator is invalid. Use a while-loop and erase the object with
post-incremented iterator instead.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 14:34:37 +01:00
Danny Al-Gaaf
80615f6bfe test/test_snap_mapper.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 14:34:15 +01:00
Danny Al-Gaaf
ed159c4a13 test/osd/RadosModel.h: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 14:33:32 +01:00
Danny Al-Gaaf
0535e1f024 test/filestore/TestFileStoreState.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 14:33:06 +01:00
Danny Al-Gaaf
2a04a9b22a test/xattr_bench.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 14:32:41 +01:00
Danny Al-Gaaf
28354c0af1 test/osd/Object.cc: prefer prefix --/++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 14:31:23 +01:00
Danny Al-Gaaf
ed4a0faaac test/encoding/ceph_dencoder.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 14:30:51 +01:00
Danny Al-Gaaf
a8f6b76095 test/bench/bencher.h: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 14:30:23 +01:00
Danny Al-Gaaf
e94cbeee4d ObjectMap/test_object_map.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 14:29:38 +01:00
Danny Al-Gaaf
f56d4847a2 tools/rest_bench.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 14:29:00 +01:00
Danny Al-Gaaf
58d07add09 tools/common.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 14:28:31 +01:00
Danny Al-Gaaf
6ba964f24e ceph-filestore-dump.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 14:28:07 +01:00
Danny Al-Gaaf
12a44bc2b9 rgw/rgw_user.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 14:27:43 +01:00
Danny Al-Gaaf
424bce9af5 rgw/rgw_rest_swift.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 14:26:51 +01:00
Danny Al-Gaaf
360191f973 osd/OSDMap.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 14:26:19 +01:00
Danny Al-Gaaf
5fe46a3c65 mds/MDCache.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 14:25:55 +01:00
Danny Al-Gaaf
51a2d78620 mds/CInode.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 14:25:29 +01:00
Danny Al-Gaaf
d0a1632d50 client/Client.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 14:24:27 +01:00
Danny Al-Gaaf
c091dcc0d7 auth/AuthMethodList.cc: fix remove_supported_auth()
Make sure the iterator isn't incremented twice if a element gets erased.
Move increment out of the for-loop header and add it to a new else block.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 14:08:22 +01:00
Danny Al-Gaaf
a96a1cc5f1 mds/mdstypes.h: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 13:03:30 +01:00
Danny Al-Gaaf
3967ce4e39 rgw/rgw_rados.cc: make sure range_iter != ranges.end()
Make sure range_iter is valid, set range_iter = next_iter instead of
++range_iter, since next_iter is already checked against ranges.end() and
is the same as ++range_iter.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:45:15 +01:00
Danny Al-Gaaf
5b8a505906 rados.cc: prefer prefix ++operator for iterators
Prefer prefix ++operator for iterators, move some iterator declaration into
the for-loop header, since the iterator is only used within the loop.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:35:38 +01:00
Danny Al-Gaaf
006a70db3b rgw/rgw_rados.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:35:38 +01:00
Danny Al-Gaaf
272ebf3ec1 rgw/rgw_admin.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:35:38 +01:00
Danny Al-Gaaf
c4cc2e80fc rgw/rgw_acl_s3.cc: prefer prefix ++operator for iterators
Prefer prefix ++operator for iterators, move some iterator declaration into
the for-loop header, since the iterator is only used within the loops.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:35:38 +01:00
Danny Al-Gaaf
a740eef0fc osdmaptool.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:35:38 +01:00
Danny Al-Gaaf
d5f607304e osdc/Striper.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:35:37 +01:00
Danny Al-Gaaf
4d46efa90e osdc/Objecter.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:35:37 +01:00
Danny Al-Gaaf
f0ed8c4f4e osdc/ObjectCacher.cc: prefer prefix ++/--operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:35:37 +01:00
Danny Al-Gaaf
da438aa92b osdc/ObjectCacher.h: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:35:37 +01:00
Danny Al-Gaaf
d0df3da85a osdc/Objecter.h: prefer prefix ++operator for iterators
Prefer prefix ++operator for iterators, move one iterator declaration into
the for-loop header, since the iterator is only used within the loop.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:35:37 +01:00
Danny Al-Gaaf
060d2d57db osdc/Filer.h: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:35:37 +01:00
Danny Al-Gaaf
844671ef14 osdc/Filer.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:35:37 +01:00
Danny Al-Gaaf
49c547061e osd/osd_types.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:35:37 +01:00
Danny Al-Gaaf
273517af14 osd/SnapMapper.cc: use empty() instead of size() == 0
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:35:37 +01:00
Danny Al-Gaaf
10b0839c2a osd/ReplicatedPG.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:35:36 +01:00
Danny Al-Gaaf
293bb07204 osd/PG.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:35:36 +01:00
Danny Al-Gaaf
cdfce02151 osd/OSDMap.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:35:36 +01:00
Danny Al-Gaaf
812ca2136b osd/OSD.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:35:36 +01:00
Danny Al-Gaaf
7647003fe9 os/LFNIndex.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:35:36 +01:00
Danny Al-Gaaf
c089f5d55b mds/Migrator.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:35:36 +01:00
Danny Al-Gaaf
d777e5a819 os/JournalingObjectStore.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:35:36 +01:00
Danny Al-Gaaf
16fa6f11ad os/FlatIndex.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:35:36 +01:00
Danny Al-Gaaf
b374a3a1f8 os/FileStore.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:35:35 +01:00
Danny Al-Gaaf
9704dde121 msg/Pipe.cc: prefer prefix ++operator for iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-18 12:35:35 +01:00