mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -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
|
private
|
||||||
def set_last_wid(wid, insert)
|
def set_last_wid(wid, insert)
|
||||||
|
wid = PHP.serialize(wid.to_i)
|
||||||
|
|
||||||
# Update last import wid variable
|
# Update last import wid variable
|
||||||
if insert
|
if insert
|
||||||
# Does not exist yet, so insert
|
# Does not exist yet, so insert
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue