diff options
author | Bernard Duggan <[email protected]> | 2017-11-14 23:24:51 +1100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2017-11-14 13:24:51 +0100 |
commit | 9900f908860b7518d58f5f35001d3b89acc5aa00 (patch) | |
tree | f8feb43944e108460f8ccbca61519c18c5dc3c6c /lib/mnesia | |
parent | 8eb324ba0b7e8bc70640a6d9258aac5a7f7be2a6 (diff) | |
download | otp-9900f908860b7518d58f5f35001d3b89acc5aa00.tar.gz otp-9900f908860b7518d58f5f35001d3b89acc5aa00.tar.bz2 otp-9900f908860b7518d58f5f35001d3b89acc5aa00.zip |
Add ignore option to transform_table fun (#1614)
Diffstat (limited to 'lib/mnesia')
-rw-r--r-- | lib/mnesia/src/mnesia.erl | 4 |
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). |