Skip to content

Commit

Permalink
Merge branch 'release/1.1.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
yosukehara committed Jan 18, 2017
2 parents 7c57b65 + de45096 commit 311b65c
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 37 deletions.
3 changes: 3 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Yosuke Hara
Yoshiyuki Kanno
Wilson Li
3 changes: 1 addition & 2 deletions include/leo_commons.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%%
%% LeoFS Commons
%%
%% Copyright (c) 2012-2015 Rakuten, Inc.
%% Copyright (c) 2012-2017 Rakuten, Inc.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this file
Expand All @@ -22,7 +22,6 @@
%% Leo Commons - Constant/Macro/Record
%%
%%======================================================================
-author('Yosuke Hara').

-record(cluster_node_status, {
type :: gateway | storage,
Expand Down
4 changes: 2 additions & 2 deletions src/leo_commons.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%%
%% Leo Commons
%%
%% Copyright (c) 2012-2016 Rakuten, Inc.
%% Copyright (c) 2012-2017 Rakuten, Inc.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this file
Expand All @@ -22,7 +22,7 @@
{application, leo_commons,
[
{description, "Leo Commons"},
{vsn, "1.1.8"},
{vsn, "1.1.9"},
{id, "leo_commons"},
{registered, []},
{applications, [kernel, stdlib]},
Expand Down
2 changes: 1 addition & 1 deletion src/leo_commons.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%%
%% Leo Commons
%%
%% Copyright (c) 2012-2015 Rakuten, Inc.
%% Copyright (c) 2012-2017 Rakuten, Inc.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this file
Expand Down
4 changes: 1 addition & 3 deletions src/leo_date.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%%
%% Leo Commons
%%
%% Copyright (c) 2012-2015 Rakuten, Inc.
%% Copyright (c) 2012-2017 Rakuten, Inc.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this file
Expand All @@ -27,8 +27,6 @@
%%======================================================================
-module(leo_date).

-author('Yosuke Hara').

-export([now/0, clock/0, zone/0,
date_format/0, date_format/1, date_format/2,
unixtime/0, unixtime_to_greg_seconds/1,
Expand Down
5 changes: 1 addition & 4 deletions src/leo_file.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%%
%% Leo Commons
%%
%% Copyright (c) 2012-2015 Rakuten, Inc.
%% Copyright (c) 2012-2017 Rakuten, Inc.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this file
Expand All @@ -27,9 +27,6 @@
%%======================================================================
-module(leo_file).

-author('Yosuke Hara').
-author('Yoshiyuki Kanno').

-include("leo_commons.hrl").
-include_lib("eunit/include/eunit.hrl").
-include_lib("kernel/include/file.hrl").
Expand Down
5 changes: 1 addition & 4 deletions src/leo_hex.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%%
%% Leo Commons
%%
%% Copyright (c) 2012-2015 Rakuten, Inc.
%% Copyright (c) 2012-2017 Rakuten, Inc.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this file
Expand All @@ -27,9 +27,6 @@
%%======================================================================
-module(leo_hex).

-author('Yosuke Hara').
-author('Yoshiyuki Kanno').

-include_lib("eunit/include/eunit.hrl").

-export([binary_to_hex/1,
Expand Down
2 changes: 1 addition & 1 deletion src/leo_http.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%%
%% Leo Commons
%%
%% Copyright (c) 2012-2015 Rakuten, Inc.
%% Copyright (c) 2012-2017 Rakuten, Inc.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this file
Expand Down
3 changes: 1 addition & 2 deletions src/leo_math.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%%
%% Leo Commons
%%
%% Copyright (c) 2012-2015 Rakuten, Inc.
%% Copyright (c) 2012-2017 Rakuten, Inc.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this file
Expand All @@ -27,7 +27,6 @@
%%======================================================================
-module(leo_math).

-author('Yosuke Hara').
-export([power/2, floor/1, ceiling/1]).

%%--------------------------------------------------------------------
Expand Down
5 changes: 1 addition & 4 deletions src/leo_mime.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%%
%% Leo Commons
%%
%% Copyright (c) 2012-2015 Rakuten, Inc.
%% Copyright (c) 2012-2017 Rakuten, Inc.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this file
Expand All @@ -26,9 +26,6 @@
%%======================================================================
-module(leo_mime).

-author('Yosuke Hara').
-author('Yoshiyuki Kanno').

-include_lib("eunit/include/eunit.hrl").

-export([guess_mime/1]).
Expand Down
4 changes: 1 addition & 3 deletions src/leo_misc.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%%
%% Leo Commons
%%
%% Copyright (c) 2012-2015 Rakuten, Inc.
%% Copyright (c) 2012-2017 Rakuten, Inc.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this file
Expand All @@ -27,8 +27,6 @@
%%======================================================================
-module(leo_misc).

-author('Yosuke Hara').

-export([node_existence/1, node_existence/2,
get_value/2, get_value/3,
binary_tokens/2,
Expand Down
14 changes: 6 additions & 8 deletions src/leo_mnesia.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%%
%% Leo Commons
%%
%% Copyright (c) 2012-2015 Rakuten, Inc.
%% Copyright (c) 2012-2017 Rakuten, Inc.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this file
Expand All @@ -27,8 +27,6 @@
%%======================================================================
-module(leo_mnesia).

-author('Yosuke Hara').

-include("leo_commons.hrl").
-include_lib("eunit/include/eunit.hrl").
-include_lib("stdlib/include/qlc.hrl").
Expand All @@ -42,7 +40,7 @@
{ok, [any()]} | not_found | {error, any()}
when Fun::function()).
read(Fun) ->
case catch mnesia:activity(transaction, Fun) of
case catch mnesia:activity(sync_transaction, Fun) of
{_, Cause} ->
{error, Cause};
[] ->
Expand All @@ -57,7 +55,7 @@ read(Fun) ->
ok | {error, any()}
when Fun::function()).
write(Fun) ->
case catch mnesia:activity(transaction, Fun) of
case catch mnesia:activity(sync_transaction, Fun) of
ok ->
ok;
{_, Cause} ->
Expand All @@ -70,7 +68,7 @@ write(Fun) ->
ok | {error, any()}
when Fun::function()).
delete(Fun) ->
case catch mnesia:activity(transaction, Fun) of
case catch mnesia:activity(sync_transaction, Fun) of
ok ->
ok;
{_, Cause} ->
Expand All @@ -83,7 +81,7 @@ delete(Fun) ->
ok | {error, any()}
when Fun::function()).
batch(Fun) ->
case catch mnesia:activity(transaction, Fun) of
case catch mnesia:activity(sync_transaction, Fun) of
ok ->
ok;
{_, Cause} ->
Expand Down Expand Up @@ -112,7 +110,7 @@ export(FilePath, Table, ExportType) ->
Rows = mnesia:table_info(Table, size),

%% output records
mnesia:transaction(
mnesia:sync_transaction(
fun() ->
case catch mnesia:first(Table) of
'$end_of_table' ->
Expand Down
4 changes: 1 addition & 3 deletions src/leo_net.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%%
%% Leo Commons
%%
%% Copyright (c) 2012-2015 Rakuten, Inc.
%% Copyright (c) 2012-2017 Rakuten, Inc.
%%
%% This file is provided to you under the Apache License,
%% Version 2.0 (the "License"); you may not use this file
Expand All @@ -27,8 +27,6 @@
%%======================================================================
-module(leo_net).

-author('Wilson Li').

-include_lib("eunit/include/eunit.hrl").

-export([chunked_send/3, chunked_send/4]).
Expand Down

0 comments on commit 311b65c

Please sign in to comment.