mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
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:
parent
fd560e3b19
commit
0a9caeac3e
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue