Drupal DBLog: store logstash_last_wid serialized.

This is to prevent a warning "can not unserialize" in Drupal 7,
since it requries all variables to be stored serialized.
This commit is contained in:
theduke 2012-12-19 13:55:26 +01:00
parent fd560e3b19
commit 0a9caeac3e

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