This is an automated email from the ASF dual-hosted git repository.
jaydoane pushed a commit to branch 3.x
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/3.x by this push:
new 2f56adb Remove include couch_db_int
2f56adb is described below
commit 2f56adb39df11499dfeea66d316ef7110f47458b
Author: ncshaw <[email protected]>
AuthorDate: Tue Mar 22 11:58:26 2022 -0500
Remove include couch_db_int
---
src/smoosh/test/smoosh_tests.erl | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/smoosh/test/smoosh_tests.erl b/src/smoosh/test/smoosh_tests.erl
index 13855f6..adabc8c 100644
--- a/src/smoosh/test/smoosh_tests.erl
+++ b/src/smoosh/test/smoosh_tests.erl
@@ -3,8 +3,6 @@
-include_lib("couch/include/couch_eunit.hrl").
-include_lib("couch/include/couch_db.hrl").
--include("couch/src/couch_db_int.hrl").
-
-define(KILOBYTE, binary:copy(<<"x">>, 1024)).
%% ==========
@@ -96,7 +94,8 @@ should_persist_queue(ChannelType, DbName) ->
end).
grow_db_file(DbName, SizeInKb) ->
- {ok, #db{filepath = FilePath} = Db} = couch_db:open_int(DbName,
[?ADMIN_CTX]),
+ {ok, Db} = couch_db:open_int(DbName, [?ADMIN_CTX]),
+ FilePath = couch_db:get_filepath(Db),
{ok, Fd} = file:open(FilePath, [append]),
Bytes = binary:copy(?KILOBYTE, SizeInKb),
file:write(Fd, Bytes),