@@ -315,6 +315,7 @@ func (clnt *Client) GetNodeNames() []string {
315
315
// If the policy is nil, the default relevant policy will be used.
316
316
func (clnt * Client ) PutPayload (policy * WritePolicy , key * Key , payload []byte ) Error {
317
317
policy = clnt .getUsableWritePolicy (policy )
318
+ //policy = clnt.getUsableWritePolicyWithConfig(policy, applyConfigToWritePolicy)
318
319
command , err := newWritePayloadCommand (clnt .cluster , policy , key , payload )
319
320
if err != nil {
320
321
return err
@@ -350,7 +351,8 @@ func (clnt *Client) Put(policy *WritePolicy, key *Key, binMap BinMap) Error {
350
351
// This method avoids using the BinMap allocation and iteration and is lighter on GC.
351
352
// If the policy is nil, the default relevant policy will be used.
352
353
func (clnt * Client ) PutBins (policy * WritePolicy , key * Key , bins ... * Bin ) Error {
353
- policy = clnt .getUsableWritePolicyWithConfig (policy , applyConfigToWritePolicy )
354
+ policy = clnt .getUsableWritePolicy (policy )
355
+ //policy = clnt.getUsableWritePolicyWithConfig(policy, applyConfigToWritePolicy)
354
356
355
357
if policy .Txn != nil {
356
358
if err := txnMonitor .addKey (clnt .cluster , policy , key ); err != nil {
@@ -377,6 +379,7 @@ func (clnt *Client) PutBins(policy *WritePolicy, key *Key, bins ...*Bin) Error {
377
379
// If the policy is nil, the default relevant policy will be used.
378
380
func (clnt * Client ) Append (policy * WritePolicy , key * Key , binMap BinMap ) Error {
379
381
policy = clnt .getUsableWritePolicy (policy )
382
+ //policy = clnt.getUsableWritePolicyWithConfig(policy, applyConfigToWritePolicy)
380
383
381
384
if policy .Txn != nil {
382
385
if err := txnMonitor .addKey (clnt .cluster , policy , key ); err != nil {
@@ -395,6 +398,7 @@ func (clnt *Client) Append(policy *WritePolicy, key *Key, binMap BinMap) Error {
395
398
// AppendBins works the same as Append, but avoids BinMap allocation and iteration.
396
399
func (clnt * Client ) AppendBins (policy * WritePolicy , key * Key , bins ... * Bin ) Error {
397
400
policy = clnt .getUsableWritePolicy (policy )
401
+ //policy = clnt.getUsableWritePolicyWithConfig(policy, applyConfigToWritePolicy)
398
402
399
403
if policy .Txn != nil {
400
404
if err := txnMonitor .addKey (clnt .cluster , policy , key ); err != nil {
@@ -417,6 +421,7 @@ func (clnt *Client) AppendBins(policy *WritePolicy, key *Key, bins ...*Bin) Erro
417
421
// If the policy is nil, the default relevant policy will be used.
418
422
func (clnt * Client ) Prepend (policy * WritePolicy , key * Key , binMap BinMap ) Error {
419
423
policy = clnt .getUsableWritePolicy (policy )
424
+ //policy = clnt.getUsableWritePolicyWithConfig(policy, applyConfigToWritePolicy)
420
425
421
426
if policy .Txn != nil {
422
427
if err := txnMonitor .addKey (clnt .cluster , policy , key ); err != nil {
@@ -435,6 +440,7 @@ func (clnt *Client) Prepend(policy *WritePolicy, key *Key, binMap BinMap) Error
435
440
// PrependBins works the same as Prepend, but avoids BinMap allocation and iteration.
436
441
func (clnt * Client ) PrependBins (policy * WritePolicy , key * Key , bins ... * Bin ) Error {
437
442
policy = clnt .getUsableWritePolicy (policy )
443
+ //policy = clnt.getUsableWritePolicyWithConfig(policy, applyConfigToWritePolicy)
438
444
439
445
if policy .Txn != nil {
440
446
if err := txnMonitor .addKey (clnt .cluster , policy , key ); err != nil {
@@ -461,6 +467,7 @@ func (clnt *Client) PrependBins(policy *WritePolicy, key *Key, bins ...*Bin) Err
461
467
// If the policy is nil, the default relevant policy will be used.
462
468
func (clnt * Client ) Add (policy * WritePolicy , key * Key , binMap BinMap ) Error {
463
469
policy = clnt .getUsableWritePolicy (policy )
470
+ //policy = clnt.getUsableWritePolicyWithConfig(policy, applyConfigToWritePolicy)
464
471
465
472
if policy .Txn != nil {
466
473
if err := txnMonitor .addKey (clnt .cluster , policy , key ); err != nil {
@@ -479,6 +486,7 @@ func (clnt *Client) Add(policy *WritePolicy, key *Key, binMap BinMap) Error {
479
486
// AddBins works the same as Add, but avoids BinMap allocation and iteration.
480
487
func (clnt * Client ) AddBins (policy * WritePolicy , key * Key , bins ... * Bin ) Error {
481
488
policy = clnt .getUsableWritePolicy (policy )
489
+ //policy = clnt.getUsableWritePolicyWithConfig(policy, applyConfigToWritePolicy)
482
490
483
491
if policy .Txn != nil {
484
492
if err := txnMonitor .addKey (clnt .cluster , policy , key ); err != nil {
@@ -503,6 +511,7 @@ func (clnt *Client) AddBins(policy *WritePolicy, key *Key, bins ...*Bin) Error {
503
511
// If the policy is nil, the default relevant policy will be used.
504
512
func (clnt * Client ) Delete (policy * WritePolicy , key * Key ) (bool , Error ) {
505
513
policy = clnt .getUsableWritePolicy (policy )
514
+ //policy = clnt.getUsableWritePolicyWithConfig(policy, applyConfigToWritePolicy)
506
515
507
516
if policy .Txn != nil {
508
517
if err := txnMonitor .addKey (clnt .cluster , policy , key ); err != nil {
@@ -530,6 +539,7 @@ func (clnt *Client) Delete(policy *WritePolicy, key *Key) (bool, Error) {
530
539
// If the record doesn't exist, it will return an error.
531
540
func (clnt * Client ) Touch (policy * WritePolicy , key * Key ) Error {
532
541
policy = clnt .getUsableWritePolicy (policy )
542
+ //policy = clnt.getUsableWritePolicyWithConfig(policy, applyConfigToWritePolicy)
533
543
534
544
if policy .Txn != nil {
535
545
if err := txnMonitor .addKey (clnt .cluster , policy , key ); err != nil {
0 commit comments