Browse Source

HPCC-10961 Add new parameter to DFU server called "quotedTerminator"
to improve speed of CSV files spray.

Update after review.

Signed-off-by: Attila Vamos <attila.vamos@gmail.com>

Attila Vamos 11 years ago
parent
commit
df09e93a1c
3 changed files with 4 additions and 1 deletions
  1. 1 1
      dali/dfuplus/dfuplus.cpp
  2. 2 0
      dali/ft/filecopy.hpp
  3. 1 0
      dali/ft/ftbase.cpp

+ 1 - 1
dali/dfuplus/dfuplus.cpp

@@ -437,7 +437,7 @@ bool CDfuPlusHelper::variableSpray(const char* srcxml,const char* srcip,const ch
         req->setRecordStructurePresent(globals->getPropBool("recordStructurePresent",false));
 
     if(globals->hasProp("quotedTerminator"))
-            req->setQuotedTerminator(globals->getPropBool("quotedTerminator",true));
+        req->setQuotedTerminator(globals->getPropBool("quotedTerminator",true));
 
     if(srcxml == NULL)
         info("\nVariable spraying from %s on %s to %s\n", srcfile, srcip, dstname);

+ 2 - 0
dali/ft/filecopy.hpp

@@ -69,6 +69,8 @@ public:
     StringAttr          terminate;
     StringAttr          escape;
     StringAttr          rowTag;
+
+    //This value isn't serialized/deserialized.
     bool                quotedTerminator;
 };
 UtfReader::UtfFormat getUtfFormatType(FileFormatType type);

+ 1 - 0
dali/ft/ftbase.cpp

@@ -431,6 +431,7 @@ void FileFormat::set(const FileFormat & src)
     terminate.set(src.terminate);
     escape.set(src.escape);
     rowTag.set(src.rowTag);
+    quotedTerminator = src.quotedTerminator;
 }