diff options
author | Paul J. Davis <paul.joseph.davis@gmail.com> | 2018-03-01 13:43:33 -0600 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2018-03-05 14:21:36 +0100 |
commit | 9b997226bd608200cb583f0dd410f513a2f6fce7 (patch) | |
tree | 05522474fefc4e690d48dab702f469e08f23e922 | |
parent | 51cb6aecc42eaa12058113003a3b4af7234250a8 (diff) | |
download | couchdb-9b997226bd608200cb583f0dd410f513a2f6fce7.tar.gz |
Remove unused code for starting compactions
This was left over from an earlier attempt at being a bit more strict on
removing access to the #db record. Its not used as is obvious by the
fact that the 2-arity version isn't even exported from the module.
-rw-r--r-- | src/couch/src/couch_db.erl | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/couch/src/couch_db.erl b/src/couch/src/couch_db.erl index 2ea94b974..93ea07e65 100644 --- a/src/couch/src/couch_db.erl +++ b/src/couch/src/couch_db.erl @@ -224,18 +224,7 @@ monitor(#db{main_pid=MainPid}) -> erlang:monitor(process, MainPid). start_compact(#db{} = Db) -> - start_compact(Db, []). - -start_compact(#db{} = Db, Opts) -> - case lists:keyfind(notify, 1, Opts) of - {notify, Pid, Term} -> - % We fake a gen_server call here which sends the - % response back to the specified pid. - Db#db.main_pid ! {'$gen_call', {Pid, Term}, start_compact}, - ok; - _ -> - gen_server:call(Db#db.main_pid, start_compact) - end. + gen_server:call(Db#db.main_pid, start_compact). cancel_compact(#db{main_pid=Pid}) -> gen_server:call(Pid, cancel_compact). |