File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,8 +55,9 @@ symfilehaschanged:{[]
5555
5656/- checks if count of partitions has changed since last reload of the IDB. Records new partition count if changed.
5757/- the default writedown method doesn't need db reloading as no new directory is being created there.
58+ /- First check is to ensure that a single intraday partition exists (so loadidb doesn't fail)
5859partitioncounthaschanged : {[]
59- if [writedownmode ~`default ;: 0b ];
60+ if [( 1j ~ partitionsize )& writedownmode ~`default ;: 0b ];
6061 $ [partitionsize <>c : count key idbdir ;[partitionsize :: c; 1b ];0b ]
6162 };
6263
Original file line number Diff line number Diff line change @@ -421,7 +421,7 @@ endofdaysort:{[dir;pt;tablist;writedownmode;mergelimits;hdbsettings;mergemethod]
421421 endofdaysortdate [dir ;pt ;key tablist ;hdbsettings ]
422422 ];
423423 /- run steps to rollover idb
424- idbreload [currentpartition +1 ];
424+ idbreload [pt +1 ];
425425 /- reset compression level (.z.zd)
426426 resetcompression [16 0 0 ]
427427 };
You can’t perform that action at this time.
0 commit comments