From 375a1f5c29fd2d3b537e117149e78b0ac61e263f Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Tue, 16 Oct 2018 20:04:33 +0200 Subject: erts: Implement ets:info(T, stats) for catrees {RouteNodes, BaseNodes, MaxRouteTreeDepth} --- lib/stdlib/doc/src/ets.xml | 5 ++--- lib/stdlib/test/ets_SUITE.erl | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'lib/stdlib') 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=stats, Value=tuple()

-

Returns internal statistics about set, bag, and - duplicate_bag tables on an internal format used by OTP - test suites. Not for production use.

+

Returns internal statistics about tables on an internal format + used by OTP test suites. Not for production use.

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) -> -- cgit v1.2.3