forked from thinkercui/ceph
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crimson/osd: partition args the right way
before this change, all "unknown" args are considered `ceph_args`, but there is chance we have command line like crimson-osd -i 1 -c ceph.conf --smp 1 --cpuset 00000001 in this case, "1" is listed in `unknown_args`, but it is also in `parsed.options`. so we will put the second "1" into `ceph_args` even it should be appended to `app_args`. so, in this change, `std::partition_copy()` is replaced with a hand-written loop which advances through the `argv` and `unknown_args`, try to match as many consecutive options are possible. it assumes that the order of args in `unknown_args` is the same as their order in `argv[]`. Signed-off-by: Kefu Chai <[email protected]>
- Loading branch information
Showing
1 changed file
with
35 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters