File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -10810,3 +10810,25 @@ void spider_table_remove_share_from_crd_thread(
1081010810 DBUG_VOID_RETURN;
1081110811}
1081210812#endif
10813+
10814+ uchar *spider_duplicate_char (
10815+ uchar *dst,
10816+ uchar esc,
10817+ uchar *src,
10818+ uint src_lgt
10819+ ) {
10820+ uchar *ed = src + src_lgt;
10821+ DBUG_ENTER (" spider_duplicate_char" );
10822+ while (src < ed)
10823+ {
10824+ *dst = *src;
10825+ if (*src == esc)
10826+ {
10827+ ++dst;
10828+ *dst = esc;
10829+ }
10830+ ++dst;
10831+ ++src;
10832+ }
10833+ DBUG_RETURN (dst);
10834+ }
Original file line number Diff line number Diff line change @@ -738,3 +738,9 @@ void spider_table_remove_share_from_crd_thread(
738738 SPIDER_SHARE * share
739739);
740740#endif
741+ uchar * spider_duplicate_char (
742+ uchar * dst ,
743+ uchar esc ,
744+ uchar * src ,
745+ uint src_lgt
746+ );
You can’t perform that action at this time.
0 commit comments