Skip to content

Commit

Permalink
afmongodb: Show a warning when throttle is set.
Browse files Browse the repository at this point in the history
Throttle is not working and not supported in MongoDB destination,
so we will show a warning and set throttle back to zero.
  • Loading branch information
Viktor Tusa committed May 27, 2014
1 parent 8505895 commit 7c484af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/afmongodb/afmongodb.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,12 @@ afmongodb_dd_init(LogPipe *s)
self->max_retry_of_failed_inserts = 3;
}

if (self->super.super.throttle != 0)
{
msg_warning("WARNING! Throttle option for MongoDB is not supported, ignoring!", NULL);
self->super.super.throttle = 0;
}

if (!afmongodb_dd_check_auth_options(self))
return FALSE;

Expand Down

0 comments on commit 7c484af

Please sign in to comment.