Merge pull request #279 from theduke/drupal

Drupal DBLog: store logstash_last_wid serialized.
This commit is contained in:
Jordan Sissel 2012-12-21 16:18:49 -08:00
commit 2ef64f8ec8

View file

@ -254,6 +254,8 @@ class LogStash::Inputs::DrupalDblog < LogStash::Inputs::Base
private
def set_last_wid(wid, insert)
wid = PHP.serialize(wid.to_i)
# Update last import wid variable
if insert
# Does not exist yet, so insert