You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you call set_multi with just a single array reference as the value it fails with the following errors:
'Using second stack item for AV '
'Expected array reference'
Example of how to reproduce:
my $ con = $con = Couchbase::Client->new({ server => '127.0.0.1', bucket => 'default' });
my $opret = $con->set_multi([ 'somekey', 'somevalue' ])
This may seem odd, but in my use case I am calling set_multi to bulk insert, I then check all of the returns and append any failed to a list to try again, and call set_multi with that list. Rinse, repeat in a loop until all items have been inserted successfully.
Since set_multi can't handle a single item list I was occasionally getting a crash when only a single item remained to be retried.
I am now checking to see if only a single insert remains, but it would be more convenient if set_multi worked with a single item list.
The text was updated successfully, but these errors were encountered:
If you call set_multi with just a single array reference as the value it fails with the following errors:
'Using second stack item for AV '
'Expected array reference'
Example of how to reproduce:
my $ con = $con = Couchbase::Client->new({ server => '127.0.0.1', bucket => 'default' });
my $opret = $con->set_multi([ 'somekey', 'somevalue' ])
This may seem odd, but in my use case I am calling set_multi to bulk insert, I then check all of the returns and append any failed to a list to try again, and call set_multi with that list. Rinse, repeat in a loop until all items have been inserted successfully.
Since set_multi can't handle a single item list I was occasionally getting a crash when only a single item remained to be retried.
I am now checking to see if only a single insert remains, but it would be more convenient if set_multi worked with a single item list.
The text was updated successfully, but these errors were encountered: