aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mnesia/src/mnesia.erl
diff options
context:
space:
mode:
authorBernard Duggan <[email protected]>2017-11-14 23:24:51 +1100
committerDan Gudmundsson <[email protected]>2017-11-14 13:24:51 +0100
commit9900f908860b7518d58f5f35001d3b89acc5aa00 (patch)
treef8feb43944e108460f8ccbca61519c18c5dc3c6c /lib/mnesia/src/mnesia.erl
parent8eb324ba0b7e8bc70640a6d9258aac5a7f7be2a6 (diff)
downloadotp-9900f908860b7518d58f5f35001d3b89acc5aa00.tar.gz
otp-9900f908860b7518d58f5f35001d3b89acc5aa00.tar.bz2
otp-9900f908860b7518d58f5f35001d3b89acc5aa00.zip
Add ignore option to transform_table fun (#1614)
Diffstat (limited to 'lib/mnesia/src/mnesia.erl')
-rw-r--r--lib/mnesia/src/mnesia.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mnesia/src/mnesia.erl b/lib/mnesia/src/mnesia.erl
index b68b2de028..190fb2b56d 100644
--- a/lib/mnesia/src/mnesia.erl
+++ b/lib/mnesia/src/mnesia.erl
@@ -2681,7 +2681,7 @@ del_table_index(Tab, Ix) ->
-spec transform_table(Tab::table(), Fun, [Attr]) -> t_result(ok) when
Attr :: atom(),
- Fun:: fun((Record::tuple()) -> Transformed::tuple()).
+ Fun:: fun((Record::tuple()) -> Transformed::tuple()) | ignore.
transform_table(Tab, Fun, NewA) ->
try val({Tab, record_name}) of
OldRN -> mnesia_schema:transform_table(Tab, Fun, NewA, OldRN)
@@ -2692,7 +2692,7 @@ transform_table(Tab, Fun, NewA) ->
-spec transform_table(Tab::table(), Fun, [Attr], RecName) -> t_result(ok) when
RecName :: atom(),
Attr :: atom(),
- Fun:: fun((Record::tuple()) -> Transformed::tuple()).
+ Fun:: fun((Record::tuple()) -> Transformed::tuple()) | ignore.
transform_table(Tab, Fun, NewA, NewRN) ->
mnesia_schema:transform_table(Tab, Fun, NewA, NewRN).