Skip to content

Commit

Permalink
dir: updated Reconnect directive to be true by default
Browse files Browse the repository at this point in the history
  • Loading branch information
alaaeddineelamri committed Sep 22, 2021
1 parent dd925a8 commit 37e706b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/src/dird/dird_conf.cc
Expand Up @@ -327,8 +327,8 @@ static ResourceItem cat_items[] = {
/* Turned off for the moment */
{ "MultipleConnections", CFG_TYPE_BIT, ITEM(res_cat, mult_db_connections), 0, 0, NULL, NULL, NULL },
{ "DisableBatchInsert", CFG_TYPE_BOOL, ITEM(res_cat, disable_batch_insert), 0, CFG_ITEM_DEFAULT, "false", NULL, NULL },
{ "Reconnect", CFG_TYPE_BOOL, ITEM(res_cat, try_reconnect), 0, CFG_ITEM_DEFAULT, "false",
"15.1.0-", "Try to reconnect a database connection when its dropped" },
{ "Reconnect", CFG_TYPE_BOOL, ITEM(res_cat, try_reconnect), 0, CFG_ITEM_DEFAULT, "true",
"15.1.0-", "Try to reconnect a database connection when it is dropped" },
{ "ExitOnFatal", CFG_TYPE_BOOL, ITEM(res_cat, exit_on_fatal), 0, CFG_ITEM_DEFAULT, "false",
"15.1.0-", "Make any fatal error in the connection to the database exit the program" },
{ "MinConnections", CFG_TYPE_PINT32, ITEM(res_cat, pooling_min_connections), 0, CFG_ITEM_DEFAULT, "1", NULL,
Expand Down
4 changes: 2 additions & 2 deletions core/src/dird/dird_conf.h
Expand Up @@ -250,8 +250,8 @@ class CatalogResource : public BareosResource {
uint32_t mult_db_connections = 0; /**< Set if multiple connections wanted */
bool disable_batch_insert
= false; /**< Set if batch inserts should be disabled */
bool try_reconnect = false; /**< Try to reconnect a database connection when
its dropped */
bool try_reconnect = true; /**< Try to reconnect a database connection when
it is dropped */
bool exit_on_fatal = false; /**< Make any fatal error in the connection to the
database exit the program */
uint32_t pooling_min_connections
Expand Down

0 comments on commit 37e706b

Please sign in to comment.