diff options
author | Sverker Eriksson <[email protected]> | 2018-10-16 20:04:33 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2018-10-23 12:36:28 +0200 |
commit | 375a1f5c29fd2d3b537e117149e78b0ac61e263f (patch) | |
tree | 10c2af9a4a2825cf4344c51f7d648eff71f1aff1 /lib | |
parent | 89133a5589c32529bb33d53de0ae0f0c687ace9c (diff) | |
download | otp-375a1f5c29fd2d3b537e117149e78b0ac61e263f.tar.gz otp-375a1f5c29fd2d3b537e117149e78b0ac61e263f.tar.bz2 otp-375a1f5c29fd2d3b537e117149e78b0ac61e263f.zip |
erts: Implement ets:info(T, stats) for catrees
{RouteNodes, BaseNodes, MaxRouteTreeDepth}
Diffstat (limited to 'lib')
-rw-r--r-- | lib/stdlib/doc/src/ets.xml | 5 | ||||
-rw-r--r-- | lib/stdlib/test/ets_SUITE.erl | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/lib/stdlib/doc/src/ets.xml b/lib/stdlib/doc/src/ets.xml index 0179090878..611b176613 100644 --- a/lib/stdlib/doc/src/ets.xml +++ b/lib/stdlib/doc/src/ets.xml @@ -611,9 +611,8 @@ Error: fun containing local Erlang function calls </item> <item> <p><c>Item=stats, Value=tuple()</c></p> - <p>Returns internal statistics about <c>set</c>, <c>bag</c>, and - <c>duplicate_bag</c> tables on an internal format used by OTP - test suites. Not for production use.</p></item> + <p>Returns internal statistics about tables on an internal format + used by OTP test suites. Not for production use.</p></item> </list> </desc> </func> diff --git a/lib/stdlib/test/ets_SUITE.erl b/lib/stdlib/test/ets_SUITE.erl index 2c0692855f..da4933064c 100644 --- a/lib/stdlib/test/ets_SUITE.erl +++ b/lib/stdlib/test/ets_SUITE.erl @@ -796,10 +796,10 @@ t_delete_all_objects(Config) when is_list(Config) -> get_kept_objects(T) -> case ets:info(T,stats) of - false -> - 0; {_,_,_,_,_,_,KO} -> - KO + KO; + _ -> + 0 end. t_delete_all_objects_do(Opts) -> |