Commit 3e1bf44
authored
SetNode: Don't Initialize Leaf Path if Failed when
* SetNode: Don't Initialize Leaf Path if Failed when `InitMissingElements` is set.
A leaf path is currently unconditionally initialized for `SetNode` when `InitMissingElements` is set. If `SetNode` failed with this option set, then this not only doesn't make sense, but would also create an inconsistency against when this option is not set.
This PR keeps leaf initialization behaviour for `GetOrCreateNode`, but removes it for `SetNode` when `InitMissingElements` is set.InitMissingElements is set. (#595)1 parent 0cb8659 commit 3e1bf44
File tree
5 files changed
+86
-35
lines changed- util
- ytypes
5 files changed
+86
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
| 382 | + | |
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
402 | 404 | | |
403 | 405 | | |
404 | 406 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
905 | 905 | | |
906 | 906 | | |
907 | 907 | | |
908 | | - | |
909 | | - | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
910 | 914 | | |
911 | 915 | | |
912 | 916 | | |
| |||
918 | 922 | | |
919 | 923 | | |
920 | 924 | | |
921 | | - | |
922 | | - | |
923 | | - | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
924 | 928 | | |
925 | | - | |
926 | | - | |
927 | | - | |
928 | | - | |
929 | | - | |
930 | | - | |
931 | | - | |
932 | | - | |
933 | | - | |
934 | | - | |
935 | | - | |
936 | | - | |
937 | | - | |
938 | | - | |
939 | | - | |
940 | | - | |
941 | | - | |
942 | | - | |
943 | | - | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
944 | 958 | | |
945 | 959 | | |
946 | 960 | | |
| |||
950 | 964 | | |
951 | 965 | | |
952 | 966 | | |
953 | | - | |
| 967 | + | |
954 | 968 | | |
955 | | - | |
| 969 | + | |
956 | 970 | | |
957 | 971 | | |
958 | 972 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1217 | 1217 | | |
1218 | 1218 | | |
1219 | 1219 | | |
1220 | | - | |
| 1220 | + | |
1221 | 1221 | | |
1222 | | - | |
| 1222 | + | |
1223 | 1223 | | |
1224 | 1224 | | |
1225 | 1225 | | |
| |||
1862 | 1862 | | |
1863 | 1863 | | |
1864 | 1864 | | |
1865 | | - | |
| 1865 | + | |
1866 | 1866 | | |
1867 | 1867 | | |
1868 | 1868 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
159 | 162 | | |
160 | 163 | | |
161 | 164 | | |
162 | | - | |
| 165 | + | |
163 | 166 | | |
164 | 167 | | |
165 | 168 | | |
| |||
408 | 411 | | |
409 | 412 | | |
410 | 413 | | |
| 414 | + | |
411 | 415 | | |
412 | 416 | | |
413 | 417 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1878 | 1878 | | |
1879 | 1879 | | |
1880 | 1880 | | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
1881 | 1892 | | |
1882 | 1893 | | |
1883 | 1894 | | |
| |||
1907 | 1918 | | |
1908 | 1919 | | |
1909 | 1920 | | |
| 1921 | + | |
1910 | 1922 | | |
1911 | 1923 | | |
1912 | 1924 | | |
| |||
1915 | 1927 | | |
1916 | 1928 | | |
1917 | 1929 | | |
| 1930 | + | |
1918 | 1931 | | |
1919 | 1932 | | |
1920 | 1933 | | |
| |||
2040 | 2053 | | |
2041 | 2054 | | |
2042 | 2055 | | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
2043 | 2059 | | |
2044 | 2060 | | |
2045 | 2061 | | |
| |||
2048 | 2064 | | |
2049 | 2065 | | |
2050 | 2066 | | |
| 2067 | + | |
2051 | 2068 | | |
2052 | 2069 | | |
2053 | 2070 | | |
| |||
2056 | 2073 | | |
2057 | 2074 | | |
2058 | 2075 | | |
| 2076 | + | |
2059 | 2077 | | |
2060 | 2078 | | |
2061 | 2079 | | |
| |||
2064 | 2082 | | |
2065 | 2083 | | |
2066 | 2084 | | |
| 2085 | + | |
2067 | 2086 | | |
2068 | 2087 | | |
2069 | 2088 | | |
| |||
2292 | 2311 | | |
2293 | 2312 | | |
2294 | 2313 | | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
2295 | 2326 | | |
2296 | 2327 | | |
2297 | 2328 | | |
| |||
2301 | 2332 | | |
2302 | 2333 | | |
2303 | 2334 | | |
2304 | | - | |
2305 | | - | |
2306 | | - | |
2307 | 2335 | | |
2308 | 2336 | | |
2309 | 2337 | | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
2310 | 2341 | | |
2311 | 2342 | | |
2312 | 2343 | | |
| |||
0 commit comments