diff options
author | Jan Lehnardt <jan@apache.org> | 2009-03-03 11:33:14 +0000 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2009-03-03 11:33:14 +0000 |
commit | 745ec3bec56e8c66bf0e4c862b02f925052a339c (patch) | |
tree | 0b11bcb067ed6443465bdb20ccb9d9b9768edfa6 /src/couchdb/couch_file.erl | |
parent | f5ebfabcf1807f5164a2094524e7769d2390dc0b (diff) |
stats metrics renamed: os_open_files -> open_os_files, database_changes -> database_writes
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@749583 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_file.erl')
-rw-r--r-- | src/couchdb/couch_file.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/couchdb/couch_file.erl b/src/couchdb/couch_file.erl index 364eafd6..4db55e70 100644 --- a/src/couchdb/couch_file.erl +++ b/src/couchdb/couch_file.erl @@ -285,14 +285,14 @@ init({Filepath, Options, ReturnPid, Ref}) -> true -> {ok, 0} = file:position(Fd, 0), ok = file:truncate(Fd), - couch_stats_collector:increment({couchdb, os_files_open}), + couch_stats_collector:increment({couchdb, open_os_files}), {ok, Fd}; false -> ok = file:close(Fd), init_status_error(ReturnPid, Ref, file_exists) end; false -> - couch_stats_collector:increment({couchdb, os_files_open}), + couch_stats_collector:increment({couchdb, open_os_files}), {ok, Fd} end; Error -> @@ -304,7 +304,7 @@ init({Filepath, Options, ReturnPid, Ref}) -> {ok, Fd_Read} -> {ok, Fd} = file:open(Filepath, [read, write, raw, binary]), ok = file:close(Fd_Read), - couch_stats_collector:increment({couchdb, os_files_open}), + couch_stats_collector:increment({couchdb, open_os_files}), {ok, Fd}; Error -> init_status_error(ReturnPid, Ref, Error) @@ -313,7 +313,7 @@ init({Filepath, Options, ReturnPid, Ref}) -> terminate(_Reason, _Fd) -> - couch_stats_collector:decrement({couchdb, os_files_open}), + couch_stats_collector:decrement({couchdb, open_os_files}), ok. |