aboutsummaryrefslogtreecommitdiff
path: root/src/pubsub_index.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/pubsub_index.erl')
-rw-r--r--src/pubsub_index.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pubsub_index.erl b/src/pubsub_index.erl
index 983356a18..de71b6395 100644
--- a/src/pubsub_index.erl
+++ b/src/pubsub_index.erl
@@ -5,7 +5,7 @@
%%% Created : 30 Apr 2009 by Christophe Romain <christophe.romain@process-one.net>
%%%
%%%
-%%% ejabberd, Copyright (C) 2002-2016 ProcessOne
+%%% ejabberd, Copyright (C) 2002-2019 ProcessOne
%%%
%%% This program is free software; you can redistribute it and/or
%%% modify it under the terms of the GNU General Public License as
@@ -34,7 +34,7 @@
-export([init/3, new/1, free/2]).
init(_Host, _ServerHost, _Opts) ->
- mnesia:create_table(pubsub_index,
+ ejabberd_mnesia:create(?MODULE, pubsub_index,
[{disc_copies, [node()]},
{attributes, record_info(fields, pubsub_index)}]).