text
stringlengths
7
2.39k
embedding
listlengths
768
768
GetMemberCount returns value of MemberCount field.
[ 0.9337236285209656, -0.043959636241197586, 0.3979339003562927, 0.15081289410591125, 0.6828650236129761, 0.14227087795734406, 0.2242744117975235, 0.5291199088096619, -0.47097861766815186, -0.35036468505859375, -0.5318517684936523, -0.06286018341779709, -0.4815879464149475, -0.23741583526134...
GetStatus returns value of Status field.
[ -0.08402486145496368, 0.36812517046928406, -0.00042665668297559023, 0.39953380823135376, 0.12566490471363068, 0.4936342239379883, 0.024836845695972443, 0.48127132654190063, 0.09458139538764954, -0.06540733575820923, -1.1711870431900024, -0.1505245715379715, 0.08190641552209854, 0.068547941...
GetIsActive returns value of IsActive field.
[ -0.025082547217607498, -0.25812244415283203, 0.5281542539596558, 0.28726503252983093, 0.03625279664993286, 0.5593897700309753, 0.00411780783906579, -0.257178395986557, -0.13582901656627655, -0.10351218283176422, -0.7474166750907898, 0.3519304096698761, -0.31540441513061523, -2.063796520233...
GetUpgradedToSupergroupID returns value of UpgradedToSupergroupID field.
[ 0.3470878303050995, 0.2839616537094116, 0.1578606367111206, 0.17768502235412598, -1.272741436958313, -0.13590280711650848, 0.4168703556060791, 0.5358479619026184, -0.053912073373794556, 0.32141661643981934, -1.1052041053771973, 0.8871447443962097, 0.7957268953323364, -0.11167629063129425, ...
/ Complete the 'verifyItems' function below. The function is expected to return an INTEGER. The function accepts following parameters: 1. STRING_ARRAY origItems 2. FLOAT_ARRAY origPrices 3. STRING_ARRAY items 4. FLOAT_ARRAY prices
[ 0.1506098061800003, -0.5860676765441895, 0.5496313571929932, 0.3020617663860321, 0.9019381999969482, -0.15494953095912933, 0.2888515591621399, 0.4066842198371887, -0.2598475515842438, 0.39694419503211975, -0.3572843372821808, 0.2835169732570648, -1.1113333702087402, 0.21987450122833252, ...
initialize your data structure here.
[ 0.145489901304245, -0.09390315413475037, 0.05074910819530487, 0.269389271736145, 0.24843290448188782, -0.017066139727830887, 0.19533279538154602, 0.40177902579307556, 0.37721654772758484, -1.339983582496643, -1.4854823350906372, 0.17942705750465393, 0.3012174963951111, 0.3743201196193695, ...
Get takes name of the applicationMapping, and returns the corresponding applicationMapping object, and an error if there is any.
[ -0.841284990310669, -0.48086878657341003, 0.5464183688163757, 0.5896868109703064, -0.5539273023605347, -0.49202048778533936, -0.30778321623802185, -0.9286485910415649, 0.4819093942642212, -0.29410576820373535, 0.29002466797828674, 0.1385628879070282, 0.35970771312713623, 0.0913430377840995...
List takes label and field selectors, and returns the list of ApplicationMappings that match those selectors.
[ -1.0403228998184204, -0.5958706736564636, 0.45578733086586, 1.1218045949935913, 0.00035710958763957024, 0.5662661790847778, -0.99049311876297, 0.49177277088165283, 0.5678480267524719, -0.27551668882369995, 0.4748916029930115, -0.11537612229585648, 1.0126410722732544, 0.23742760717868805, ...
Watch returns a watch.Interface that watches the requested applicationMappings.
[ -0.05452149361371994, -0.5843923687934875, 0.20984582602977753, 0.9847530722618103, -0.2880554795265198, 0.7718579769134521, 0.00039059322443790734, -0.297598272562027, 0.6753206253051758, -1.255592942237854, 0.22723306715488434, 0.1412232220172882, 0.7618138790130615, -0.1455797404050827,...
Create takes the representation of a applicationMapping and creates it. Returns the server's representation of the applicationMapping, and an error, if there is any.
[ -1.2777889966964722, -0.22839508950710297, 0.5177634358406067, 0.534578800201416, -0.897659420967102, -0.02124207839369774, -0.394230455160141, -0.7626773118972778, 0.5603229999542236, -0.24383477866649628, -0.06528940051794052, -0.7243853211402893, -0.3202262818813324, 0.264495849609375, ...
Update takes the representation of a applicationMapping and updates it. Returns the server's representation of the applicationMapping, and an error, if there is any.
[ -1.515783667564392, -1.1926615238189697, 0.5713031888008118, 0.1656147986650467, -1.408727765083313, -0.2566031217575073, -0.5759623646736145, -0.41848981380462646, 0.9513830542564392, 0.26460200548171997, 0.3057558238506317, -0.3937034010887146, -0.49409642815589905, -0.016292111948132515...
Delete takes name of the applicationMapping and deletes it. Returns an error if one occurs.
[ -0.16288025677204132, 0.011373271234333515, 0.7295779585838318, 1.2603495121002197, -0.6305707097053528, 0.2725132703781128, 0.4637424945831299, 0.40155351161956787, 0.9240140318870544, 0.17704768478870392, 0.28464475274086, -0.7341081500053406, -0.2861741781234741, 0.5084662437438965, 0...
DeleteCollection deletes a collection of objects.
[ -0.6149938106536865, -0.4312244653701782, 0.4197225570678711, 0.9559112787246704, 1.0172920227050781, -0.46757349371910095, 0.7178997993469238, -0.4546210467815399, -0.10570370405912399, -0.12705114483833313, -0.2531806230545044, -0.17287158966064453, 0.5954088568687439, 1.0387294292449951...
Patch applies the patch and returns the patched applicationMapping.
[ -0.7402749061584473, -1.253826379776001, 0.465198814868927, 0.4692813754081726, -1.35357666015625, 0.8743588924407959, -0.36992859840393066, 0.6274256110191345, 1.8370232582092285, -1.065030813217163, 0.554078221321106, -0.04559731110930443, 0.3360106647014618, -0.26048198342323303, -0.2...
Rules for working with kbfssync.LockState in FBO: Every "execution flow" (i.e., program flow that happens sequentially) needs its own lockState object. This usually means that each "public" FBO method does: lState := makeFBOLockState() near the top. Plumb lState through to all functions that hold any of the relevant lo...
[ 0.9669138789176941, 0.05521085485816002, 0.7783762216567993, 0.6629431247711182, -0.3847689628601074, -0.03683099523186684, 0.627986490726471, -0.4827702045440674, -0.07154253125190735, -0.9862613677978516, -0.17203082144260406, 0.35087257623672485, 0.2778033912181854, 0.6603924632072449, ...
DoRUnlockedIfPossible must be called when r or wlocked. If rlocked, runlocks, runs the given function, and rlocks after it's done. Otherwise, just runs the given function.
[ -0.6278577446937561, -0.16112017631530762, 0.35997503995895386, 1.222989797592163, 0.6614375114440918, 0.2943611145019531, 0.6231256723403931, -0.4331197142601013, 0.22124998271465302, -0.08706069737672806, 0.021799184381961823, 0.4180485010147095, -0.6624048352241516, 0.04435781016945839,...
newFolderBranchOps constructs a new folderBranchOps object.
[ 0.19880425930023193, -0.45843809843063354, 0.31391632556915283, 2.078623056411743, -0.017477117478847504, -0.5175906419754028, 0.6754555702209473, -0.8376733064651489, -0.6691910028457642, -0.37955278158187866, -0.2928111255168915, -1.0968596935272217, -0.865698516368866, 0.301612108945846...
markForReIdentifyIfNeeded checks whether this tlf is identified and mark it for lazy reidentification if it exceeds time limits.
[ -0.570091187953949, 0.24907158315181732, 0.36318138241767883, -0.4243621528148651, 1.0984554290771484, -0.7128537893295288, -0.4809630215167999, 0.11407037079334259, 0.6649627685546875, -0.3424113094806671, -0.9841250777244568, 0.33619436621665955, 0.3874812126159668, 0.871766984462738, ...
Shutdown safely shuts down any background goroutines that may have been launched by folderBranchOps.
[ 0.5729699730873108, -0.2609374523162842, 0.40761253237724304, 1.4349415302276611, 0.3255697786808014, -0.11332941055297852, 0.5224462747573853, -0.3020232319831848, -0.2220771461725235, -0.28233829140663147, 0.2666541337966919, -0.3242543041706085, -1.3172097206115723, 0.09173475205898285,...
getHead should not be called outside of folder_branch_ops.go.
[ 0.25737786293029785, 0.7939956188201904, 0.4493247866630554, 1.7603185176849365, 1.1625378131866455, 0.3398156464099884, 0.841264009475708, -1.1413733959197998, -0.06388533115386963, -0.42609483003616333, 0.7473114728927612, 1.0492992401123047, -0.25886479020118713, -0.25078850984573364, ...
isUnmerged should not be called if mdWriterLock is already taken.
[ -0.49338680505752563, 1.052049160003662, 0.37823784351348877, 0.2031055986881256, 0.8529268503189087, 0.2632482051849365, 1.1033293008804321, 0.39177972078323364, 0.0451543927192688, -0.7516173124313354, -0.461117148399353, -0.5859419703483582, -1.0762012004852295, 0.8853849768638611, -1...
clearConflictView tells the journal to move any pending writes elsewhere, resets the CR counter, and resets the FBO to have a synced view of the TLF.
[ 1.001082181930542, 0.20320163667201996, 0.39275339245796204, -0.2348480522632599, -0.19697733223438263, -0.8294042944908142, 1.3558653593063354, -0.062346719205379486, -0.953057050704956, -0.9826377034187317, 0.8852315545082092, -0.6002289056777954, 0.2519812285900116, -0.23299099504947662...
forceStuckConflictForTesting forces the TLF into a stuck conflict view, for testing.
[ 0.3470442295074463, 0.9116165041923523, 0.31894251704216003, -0.40265557169914246, 0.9391914010047913, -0.027669569477438927, 1.544744849205017, -0.4705708920955658, -0.7299106121063232, -1.3775731325149536, 0.6835766434669495, -0.7937402129173279, -0.008796337060630322, -0.443761199712753...
getJournalPredecessorRevision returns the revision that precedes the current journal head if journaling enabled and there are unflushed MD updates; otherwise it returns kbfsmd.RevisionUninitialized. If there aren't any flushed MD revisions, it returns errNoFlushedRevisions.
[ 0.30961698293685913, 0.11501536518335342, 0.6044115424156189, -0.35319504141807556, -1.0621185302734375, -0.5722704529762268, 0.11960341036319733, 0.1653549075126648, 1.2806849479675293, -0.49965953826904297, 0.8353628516197205, 0.4614107310771942, -0.42666926980018616, 0.3439291715621948,...
validateHeadLocked validates an untrusted head and sets it as trusted. see headTrustedState comment for more information.
[ -0.16167722642421722, 0.03255002200603485, 0.3443470597267151, 0.09271645545959473, 0.2868465781211853, 0.6071035861968994, 1.1477727890014648, -1.4456591606140137, 0.0480162687599659, -0.3348294794559479, -0.3009510040283203, 1.126408576965332, -0.058110252022743225, -0.8006223440170288, ...
doPartialSync iterates through the paths, deepsyncing them and also syncing their parent directories up to the root node.
[ 0.25003600120544434, 0.4071367383003235, 0.3941088616847992, 1.0401510000228882, 0.1963849812746048, -0.4385855197906494, 1.5299851894378662, -0.7946611046791077, 0.21541884541511536, -0.42997419834136963, -0.02895582839846611, -0.17125831544399261, 0.09596400707960129, 0.7894816398620605,...
doPartialMarkAndSweep runs a markandsweep algorithm against all the currentlysynced paths, to delete any blocks not reachable from one of these paths.
[ 0.32795649766921997, -0.7790244817733765, 0.2713750898838043, 1.0958161354064941, 0.21904687583446503, -0.16195432841777802, 1.6915802955627441, 0.423074871301651, 0.09468627721071243, -0.240177720785141, -0.06816042959690094, -0.22029246389865875, 0.3058861494064331, 0.7540363073348999, ...
setNewInitialHeadLocked is for when we're creating a brandnew TLF. This is trusted.
[ 0.22919413447380066, -0.8707965016365051, 0.29446202516555786, 0.06709594279527664, 0.560365617275238, 0.13565361499786377, -0.003931981045752764, -0.5766652226448059, -0.7958619594573975, -0.47993171215057373, -0.6454567313194275, 1.0553420782089233, -0.6659037470817566, 0.312519520521163...
setInitialHeadTrustedLocked is for when the given RootMetadata was fetched due to a user action, and will be checked against the TLF name.
[ 0.9524410963058472, -0.989650309085846, 0.30783993005752563, -0.061140842735767365, 0.2836023271083832, 0.4744933545589447, 0.5071900486946106, -1.1746691465377808, -0.3336062431335449, -0.11273005604743958, -0.640733540058136, 1.4165866374969482, 0.26010847091674805, -0.37763139605522156,...
setHeadSuccessorLocked is for when we're applying updates from the server or when we're applying new updates we created ourselves.
[ -0.49887681007385254, -0.5525302886962891, 0.6073247790336609, 0.7410893440246582, -0.5856894850730896, 0.21556609869003296, -0.10783971846103668, -0.47029659152030945, 0.4826306104660034, -1.0541142225265503, -0.5758095979690552, 0.7430756688117981, -0.34387028217315674, 0.016228863969445...
setHeadPredecessorLocked is for when we're unstaging updates.
[ -0.1469353586435318, 0.1441556066274643, 0.6215461492538452, 0.240520179271698, -0.8339550495147705, -0.08822522312402725, 1.266310453414917, -0.25754570960998535, 0.1034092977643013, -0.6255388855934143, -0.24378764629364014, 0.5867332816123962, -0.3259914815425873, 0.08171474933624268, ...
setHeadConflictResolvedLocked is for when we're setting the merged update with resolved conflicts.
[ 0.31327536702156067, -0.6066729426383972, 0.48070091009140015, 0.1737588346004486, 0.48482367396354675, -0.33163151144981384, 0.09727734327316284, -0.4398139417171478, 0.24914057552814484, -1.4876292943954468, -0.9813519716262817, -0.607647716999054, -0.774423360824585, -0.8277619481086731...
getMDForRead returns an existing md for a read operation. Note that mds will not be fetched here.
[ 0.053724683821201324, -0.6175161004066467, 0.5211443305015564, -0.09750425815582275, -1.1632215976715088, 0.05856439471244812, -0.6499738097190857, -0.5442343950271606, 0.7485385537147522, -1.5315454006195068, 2.2060420513153076, 0.9948982000350952, 0.39468860626220703, -1.144159197807312,...
GetTLFHandle implements the KBFSOps interface for folderBranchOps.
[ 1.1262787580490112, 0.19663332402706146, 0.23967479169368744, 0.6048411726951599, 0.223513662815094, -0.3355681300163269, 0.5330794453620911, -0.6766685247421265, -0.7884405851364136, -0.9929614663124084, 0.5300001502037048, -1.2688220739364624, -0.9889203310012817, -1.2156312465667725, ...
getMDForWriteOrRekeyLocked can fetch MDs, identify them and contains the fancy logic. For reading use getMDLockedForRead. Here we actually can fetch things from the server. rekeys are untrusted.
[ -1.357291579246521, -0.7536743879318237, 0.33048301935195923, 0.7529142498970032, -0.12464218586683273, -1.1823937892913818, -0.2708923816680908, -0.8182200789451599, 0.35700637102127075, -0.7197971940040588, 1.0342917442321777, 0.2755435109138489, -0.12609639763832092, 0.5965794324874878,...
getMostRecentFullyMergedMD is a helper method that returns the most recent merged MD that has been flushed to the server. This could be different from the current local head if journaling is on. If the journal is on a branch, it returns an error.
[ -0.33342450857162476, 0.41709330677986145, 0.6880266070365906, 0.046520642936229706, -0.8230848908424377, -0.8131664991378784, -0.333048939704895, -0.3775224983692169, 0.23168088495731354, -0.8659083247184753, 0.7461339831352234, 0.07675806432962418, -0.7578150033950806, 0.8641806244850159...
getMDForReadNeedIdentifyOnMaybeFirstAccess should be called by a code path (like chat) that might be accessing this folder for the first time. Other folderBranchOps methods like Lookup which know the folder has already been accessed at least once (to get the root node, for example) do not need to call this. Unlike othe...
[ -0.856107234954834, -0.33870211243629456, 0.785412073135376, -0.6964030265808105, -0.12623964250087738, 0.399621844291687, -0.06905987858772278, -0.5809961557388306, 0.15147966146469116, -1.0872735977172852, 1.071262240409851, 0.6317616701126099, -0.20323076844215393, 1.676099419593811, ...
getSuccessorMDForWriteLocked returns a new RootMetadata object with an incremented version number for modification. If the returned object is put to the MDServer (via MDOps), mdWriterLock must be held until then. (See comments for mdWriterLock above.)
[ -0.8398839831352234, -0.6751708984375, 0.38985157012939453, 0.36246824264526367, -0.8388032913208008, -0.09746352583169937, 0.8816774487495422, -0.4891800880432129, 0.2918916344642639, -0.9273412227630615, 0.034221891313791275, 0.8506677150726318, -0.06078975275158882, -0.3272729814052582,...
getMDForRekeyWriteLocked returns a nil `rmd` if it is a team TLF, since that can't be rekeyed by KBFS.
[ -0.2423887550830841, -0.18301524221897125, 0.3913957178592682, 0.4201728403568268, 0.3096144199371338, -0.4997728765010834, -0.38417255878448486, -0.6638556122779846, 0.6290064454078674, -1.0800855159759521, 1.0269105434417725, 0.26582714915275574, -0.7191784381866455, 0.10719893872737885,...
ResetRootBlock creates a new empty dir block and sets the given metadata's root block to it.
[ 0.24050778150558472, 0.04435811564326286, 0.6176835298538208, 1.5548571348190308, 0.019683722406625748, -0.07802367210388184, 0.40572038292884827, -0.4622710049152374, -0.021498069167137146, -0.17252685129642487, -0.4333353042602539, 2.111844301223755, -0.6058379411697388, 0.30412656068801...
SetInitialHeadFromServer sets the head to the given ImmutableRootMetadata, which must be retrieved from the MD server.
[ -0.5551903247833252, -0.9502238631248474, 0.5082789659500122, 0.5491748452186584, -0.02074653096497059, 1.0533373355865479, -0.02846001833677292, -0.5374984741210938, -0.06120280548930168, 0.11142408847808838, -0.623961865901947, 1.6214287281036377, -0.7255164384841919, 0.7004218101501465,...
SetInitialHeadToNew creates a brandnew ImmutableRootMetadata object and sets the head to that. This is trusted.
[ -0.1571485549211502, -0.48105159401893616, 0.3170700669288635, 0.9448466897010803, 0.43810412287712097, 0.7440055012702942, 0.06965381652116776, -0.7059627771377563, -0.21387295424938202, -0.08307628333568573, -0.40232473611831665, 1.3251820802688599, -0.2969864010810852, 0.886481821537017...
pathFromNodeHelper() shouldn't be called except by the helper functions below.
[ 1.135414719581604, -0.27677544951438904, 0.2595286965370178, 0.5543162822723389, 0.09081258624792099, 0.3024127781391144, 1.314029335975647, -0.22454608976840973, -0.6177951693534851, -0.7432923913002014, 0.15718308091163635, -0.17297402024269104, 0.6037975549697876, 0.027712713927030563, ...
Helper functions to clarify uses of pathFromNodeHelper() (see nodeCache comments).
[ 0.9728402495384216, 0.00964515469968319, 0.16258229315280914, 0.17815689742565155, 0.02261570654809475, -0.13007445633411407, 0.6771807670593262, -0.27234598994255066, -0.13779811561107635, -0.355323851108551, 0.6066128611564636, -0.010555081069469452, 0.7772606611251831, 0.149871408939361...
statEntry is like Stat, but it returns a DirEntry. This is used by tests.
[ 0.20522379875183105, -0.4742550849914551, 0.44932934641838074, -0.742297351360321, -0.8849863409996033, -0.5847781896591187, 0.1565084308385849, -0.8100040555000305, 1.1529535055160522, -0.5633947849273682, 0.15131723880767822, 0.7405433058738708, 0.18196414411067963, -0.14470022916793823,...
Returns whether the given error is one that shouldn't block the removal of a file or directory. TODO: Consider other errors recoverable, e.g. ones that arise from present but corrupted blocks?
[ 0.025857221335172653, -0.19371430575847626, 0.681586503982544, 0.762117862701416, -1.1534934043884277, 0.47320613265037537, 0.6136911511421204, 0.12638548016548157, 0.9513047933578491, 0.24219168722629547, 0.09635628014802933, -0.45510080456733704, -0.9883869886398315, 0.45983824133872986,...
Returns true if the passed error indicates a revision conflict.
[ -0.6305164098739624, 0.3525562882423401, 0.5841713547706604, 1.2855333089828491, -0.17071495950222015, -0.5524465441703796, -0.30173078179359436, -0.07674379646778107, 0.8792563676834106, -0.09993955492973328, 0.4447360634803772, -0.22541068494319916, -0.7304635643959045, -0.66429400444030...
PathType returns path type
[ 0.047828733921051025, -0.410182386636734, 0.527256965637207, 0.7083866000175476, 1.1468403339385986, 0.5516980290412903, 1.415756106376648, -0.6754924058914185, 0.4616926312446594, -0.12475981563329697, 0.664567768573761, -0.3874128460884094, -1.8827232122421265, -0.21390996873378754, 0....
canonicalPath returns full canonical path for dir node and name.
[ 0.25801587104797363, -0.4560965895652771, 0.10300081968307495, 0.3377782702445984, -0.4704766869544983, 0.4112973213195801, 0.9067490100860596, 0.17767256498336792, -0.7394417524337769, 0.573387622833252, 0.84843510389328, 0.7618414759635925, 0.8192213773727417, 0.03931255266070366, 1.07...
entryType must not by Sym.
[ 0.344912052154541, 0.3369997441768646, -0.034997157752513885, 0.46864864230155945, 0.6060529947280884, 0.6945229172706604, 1.5592749118804932, 0.2346358448266983, 0.30701178312301636, -0.11026312410831451, -0.7275774478912354, 0.3274235725402832, -0.3223896324634552, 1.631919503211975, -...
notifyAndSyncOrSignal caches an op in memory and dirties the relevant node, and then sends a notification for it. If batching is on, it signals the write; otherwise it syncs the change. It should only be called as the final instruction that can fail in a method.
[ -0.1579774022102356, 0.6234256029129028, 0.4502924084663391, 1.082276463508606, -0.308220773935318, -0.8175445795059204, 0.7728173732757568, 0.6227331161499023, -0.12978720664978027, 0.6941735744476318, -1.1083719730377197, 0.7478426098823547, 1.1054412126541138, 0.2441580444574356, 0.16...
unrefEntry modifies md to unreference all relevant blocks for the given entry.
[ 0.19043835997581482, 0.07594297081232071, 0.405958890914917, -1.1582539081573486, 0.5409259796142578, -0.6500071287155151, 0.2353900671005249, 0.08242210745811462, 0.7076605558395386, 0.32086583971977234, 0.6247026324272156, 0.6411566138267517, -0.11941232532262802, 0.43020957708358765, ...
startSyncLocked readies the blocks and other state needed to sync a single file. It returns: `doSync`: Whether or not the sync should actually happen. `stillDirty`: Whether the file should still be considered dirty when this function returns. (That is, if `doSync` is false, and `stillDirty` is true, then the file has o...
[ 0.5058119297027588, -0.17907704412937164, 0.7430667281150818, 0.4270915389060974, -0.3073350787162781, -0.7351582646369934, 1.002272129058838, -0.4989047348499298, -0.6956496834754944, -0.21739327907562256, -0.4512021839618683, 0.9697020053863525, 0.30012497305870056, -0.0850558876991272, ...
SyncAll implements the KBFSOps interface for folderBranchOps.
[ 0.7113430500030518, -0.32908087968826294, 0.3190843164920807, 2.159586191177368, -0.05572957545518875, -0.36882442235946655, 0.3138978183269501, -0.4523743689060211, -0.2960543632507324, 0.23992566764354706, 0.17003080248832703, -0.4533980190753937, -0.10839953273534775, 0.5719601511955261...
RegisterForChanges registers a single Observer to receive notifications about this folder/branch.
[ -0.14123845100402832, 1.134286880493164, 0.4690435826778412, -0.34959015250205994, 0.22054965794086456, -0.3405786156654358, -0.36433738470077515, -0.44064635038375854, -0.5854464769363403, -1.473541021347046, -0.7834791541099548, 0.4565722644329071, 0.2425818145275116, 1.001020908355713, ...
UnregisterFromChanges stops an Observer from getting notifications about the folder/branch.
[ 0.1892281025648117, 0.611557126045227, 0.39469343423843384, -0.20533570647239685, -0.3042421042919159, 0.23361997306346893, 0.5687146782875061, -0.25846222043037415, -0.556165874004364, -0.582302451133728, -0.49192771315574646, -0.15626218914985657, -0.06340472400188446, 0.1950191408395767...
notifyBatchLocked sends out a notification for all the ops in md.
[ -0.23783817887306213, -0.14934423565864563, 0.32737767696380615, 1.3569425344467163, 0.07574203610420227, -0.7857248187065125, 0.3351651430130005, -0.919206440448761, -0.4593955874443054, 0.21718089282512665, -0.4237446188926697, 1.059862732887268, 0.5156753659248352, 0.14999008178710938, ...
searchForNode tries to figure out the path to the given blockPointer, using only the block updates that happened as part of a given MD update operation.
[ 0.4188670217990875, -0.09713240712881088, 0.4946605861186981, 0.4910253584384918, -1.0601005554199219, -0.6001245379447937, 0.38990217447280884, -0.966452419757843, -0.30692794919013977, -0.43362435698509216, 1.2396795749664307, -0.1842571347951889, -0.31291744112968445, 0.2642803788185119...
caller should have held fbo.headLock
[ 0.952332615852356, 0.4875974655151367, 0.2754800021648407, 1.4687256813049316, 0.2405056655406952, 0.47947731614112854, 0.4322797358036041, -1.535136103630066, -0.0311881173402071, -1.699863076210022, -0.28479522466659546, -0.35056272149086, -0.7867697477340698, 0.5704077482223511, 0.105...
Assumes all necessary locking is either already done by caller, or is done by applyFunc.
[ -0.15169556438922882, -0.05718923732638359, 0.4896997809410095, 0.5798988342285156, -0.4617035686969757, -0.28652599453926086, 0.8206958770751953, -0.08483736962080002, 1.0630571842193604, -0.6005772352218628, -0.14518915116786957, 0.27240538597106934, 0.1681087166070938, 1.500877737998962...
getUnmergedMDUpdates returns a slice of the unmerged MDs for this TLF's current unmerged branch and unmerged branch, between the merge point for the branch and the current head. The returned MDs are the same instances that are stored in the MD cache, so they should be modified with care.
[ -1.166259765625, -0.9486894011497498, 0.5371561646461487, -0.37243014574050903, -0.21308539807796478, 0.22086814045906067, -0.35610541701316833, -0.08463311940431595, 0.05756816267967224, -0.4895198345184326, 0.09918911755084991, 0.21816927194595337, -1.3940616846084595, 0.6071642637252808...
Returns a list of block pointers that were created during the staged era.
[ -0.6594417691230774, -0.5332545042037964, 0.4722115993499756, 0.6774382591247559, 0.11040583997964859, 0.7524038553237915, 0.30211278796195984, -0.14829757809638977, -0.34947669506073, 1.1213679313659668, -0.12626664340496063, 0.7544538974761963, 0.2892806828022003, 0.7391993403434753, 0...
TODO: remove once we have automatic conflict resolution
[ 0.42238932847976685, -0.25961124897003174, 0.3213145434856415, 0.9158984422683716, 0.17296059429645538, -0.4340505599975586, 0.5474432110786438, 0.28485745191574097, 0.38465291261672974, -0.49082985520362854, -0.5159569978713989, -0.7501457333564758, -1.4688893556594849, 0.2577186524868011...
CancelUploads implements the KBFSOps interface for folderBranchOps.
[ 0.9131672978401184, 0.04569697380065918, 0.32868582010269165, 1.4716060161590576, -0.2988188564777374, -0.5128604173660278, 0.766338050365448, -0.3327227234840393, -1.0931711196899414, 0.15194593369960785, -0.15350469946861267, -1.518496036529541, -0.751885175704956, 0.1781734824180603, ...
mdWriterLock must be taken by the caller.
[ -0.6547874212265015, 0.9618919491767883, 0.21150480210781097, 0.842426598072052, 0.17871885001659393, -0.0035124600399285555, 0.9267546534538269, -0.23796522617340088, -0.16449859738349915, -1.1425970792770386, 0.37175676226615906, -0.03681749850511551, -0.9135792851448059, 0.4381210803985...
Run the passed function with a context that's canceled on shutdown.
[ 0.5031055808067322, -0.3073311746120453, 0.44983869791030884, 1.3987385034561157, -1.3360285758972168, 0.5606088638305664, -0.5015517473220825, -0.06566895544528961, 0.623724639415741, 0.396994024515152, 0.7100634574890137, -0.05559916794300079, 0.14090953767299652, -0.7579612135887146, ...
finalizeResolution caches all the blocks, and writes the new MD to the merged branch, failing if there is a conflict. It also sends out the given newOps notifications locally. This is used for completing conflict resolution.
[ 0.2271386831998825, 0.1838146150112152, 0.5166908502578735, 1.2090896368026733, 0.5372167825698853, -0.6879918575286865, 0.11216326057910919, -0.3985423743724823, 0.14187085628509521, -0.44647273421287537, -0.6032847166061401, -0.908106803894043, -0.7832021117210388, 0.5177197456359863, ...
TeamNameChanged implements the KBFSOps interface for folderBranchOps
[ 0.5684950947761536, -0.03710942342877388, 0.38537508249282837, 0.9933305382728577, -0.5023229122161865, -0.6340216994285583, 0.5539792776107788, -0.8408504724502563, -0.5518724322319031, 0.06273923069238663, -0.02981320396065712, -0.4627757668495178, 0.27709561586380005, -0.484527230262756...
TeamAbandoned implements the KBFSOps interface for folderBranchOps.
[ 0.7699253559112549, -0.45589232444763184, 0.34215298295021057, 0.654639720916748, -0.311942994594574, 0.009690716862678528, 0.4230162501335144, -0.5357036590576172, -0.5395527482032776, 0.1543981283903122, 0.49840879440307617, -0.3263072967529297, -0.02348693087697029, -0.1327395737171173,...
CheckMigrationPerms implements the KBFSOps interface for folderBranchOps.
[ -0.19227145612239838, 0.6029568910598755, 0.4657672345638275, 1.862004280090332, -0.2298993170261383, -0.47176283597946167, -0.08528061211109161, -0.4204730987548828, -0.9150416254997253, 0.8494486808776855, 0.5766938328742981, -0.889679491519928, -1.1177756786346436, 0.72312992811203, -...
MigrateToImplicitTeam implements the KBFSOps interface for folderBranchOps.
[ 0.1640719622373581, 0.7058672308921814, 0.353331983089447, 1.134304404258728, 0.3674503266811371, -0.10002605617046356, 0.9664029479026794, -0.616640567779541, 0.1534571349620819, 0.4451981484889984, 0.13946111500263214, -0.7993172407150269, -0.5160971879959106, -0.44846227765083313, -0....
GetUpdateHistory implements the KBFSOps interface for folderBranchOps
[ 0.446994811296463, 0.22063034772872925, 0.5776719450950623, 1.479256510734558, -0.7486842274665833, -0.2053718864917755, 0.09652259200811386, -0.09500154852867126, -0.11324942111968994, -0.06103624403476715, 0.6263532638549805, -0.8831842541694641, -0.5476772785186768, -0.4180421531200409,...
GetEditHistory implements the KBFSOps interface for folderBranchOps
[ 0.4246669411659241, 1.09047269821167, 0.33969706296920776, 0.7832814455032349, 0.11214665323495865, -0.39888811111450195, 0.2901219129562378, -0.308419406414032, -0.2881389856338501, -0.5527907609939575, 0.9609581828117371, -0.20358559489250183, -0.4247191548347473, -0.19811902940273285, ...
PushStatusChange forces a new status be fetched by status listeners.
[ -0.13575682044029236, 0.5029711127281189, 0.07897256314754486, 0.6847505569458008, 0.5525882244110107, 0.2809011936187744, -1.1640329360961914, -0.21561816334724426, 0.0820888876914978, -0.3777550756931305, -0.6856390833854675, 0.3098621964454651, 0.9446476697921753, 1.732905387878418, 0...
ClearPrivateFolderMD implements the KBFSOps interface for folderBranchOps.
[ -0.3030773401260376, 0.3908727467060089, 0.41189560294151306, 1.5124753713607788, -0.2731063663959503, -0.0998690277338028, -0.04232843220233917, -1.3601752519607544, 0.11135366559028625, -0.3848992884159088, 1.025842308998108, 0.16703493893146515, -0.4615907669067383, 0.20514634251594543,...
ForceFastForward implements the KBFSOps interface for folderBranchOps.
[ 0.32625842094421387, 0.36355453729629517, 0.3851016163825989, 1.2307480573654175, 0.14861387014389038, -0.4369587302207947, 0.42112475633621216, -0.8819000720977783, -0.9119718074798584, -1.3173930644989014, 0.32168689370155334, -0.611327588558197, -0.2660263180732727, 0.6616668105125427, ...
Reset implements the KBFSOps interface for folderBranchOps.
[ -0.06200951710343361, -0.147842675447464, 0.33947044610977173, 1.6677069664001465, 0.18113988637924194, -0.6076000928878784, 1.1533914804458618, -0.8595505952835083, -0.6225220561027527, -0.3398006558418274, 0.25257301330566406, -0.4843240976333618, -0.6389417052268982, -0.5484511256217957...
GetSyncConfig implements the KBFSOps interface for folderBranchOps.
[ 0.5694335103034973, 0.9541469216346741, 0.39126184582710266, 1.8258236646652222, -0.4232766628265381, -1.340415596961975, 0.3986552655696869, 0.20062851905822754, -0.8859298825263977, -0.03551599010825157, -0.2711745798587799, -0.38557127118110657, -0.020696111023426056, -0.090210437774658...
SetSyncConfig implements the KBFSOps interface for KBFSOpsStandard.
[ 0.46327918767929077, 0.4655025899410248, 0.3135397136211395, 1.3479831218719482, -0.7917532920837402, -0.47824373841285706, 0.28131747245788574, 1.3321850299835205, -0.6808210015296936, 0.6338496208190918, -0.7509003281593323, -0.2968629002571106, 0.6241470575332642, 0.3454963266849518, ...
InvalidateNodeAndChildren implements the KBFSOps interface for folderBranchOps.
[ -0.49345073103904724, -0.006257922854274511, 0.26940128207206726, 1.2004060745239258, -0.45018136501312256, -0.7154767513275146, 0.6918659210205078, -0.3291909396648407, -0.36645957827568054, -0.3817737400531769, 0.1211593821644783, -0.3750854432582855, -0.921913743019104, 0.38864928483963...
NewNotificationChannel implements the KBFSOps interface for folderBranchOps.
[ 0.011936492286622524, -0.15836048126220703, 0.2931623160839081, 1.6159608364105225, -0.05587580054998398, -0.41305285692214966, 0.8526754379272461, -0.5380796194076538, -0.6109340190887451, -0.1900271773338318, 0.028031442314386368, -0.5450505018234253, -0.12064257264137268, 0.595262527465...
PushConnectionStatusChange pushes human readable connection status changes.
[ 0.17523455619812012, -0.22791919112205505, 0.12596619129180908, 0.03548578917980194, -0.14631691575050354, 0.34658026695251465, -1.665344476699829, 0.028722137212753296, -0.7978754043579102, 0.8307957053184509, -0.5630332231521606, 0.33822083473205566, 0.46537280082702637, 0.85837107896804...
SyncStatus encodes the canary pod spec and updates the canary status
[ 0.09362974762916565, -0.6231668591499329, 0.22147560119628906, 1.1991504430770874, 0.07059848308563232, 0.4755539298057556, -0.17794391512870789, 0.4836590886116028, -0.1741657555103302, 0.7374977469444275, -1.228467583656311, 1.1561342477798462, 0.6807018518447876, 0.3912246823310852, 1...
SetStatusFailedChecks updates the canary failed checks counter
[ 0.18816691637039185, -0.6163612008094788, 0.12235376238822937, 1.1813338994979858, 0.36273062229156494, 1.0747746229171753, 0.7241348624229431, -0.0913981944322586, -0.36253175139427185, -1.9381697177886963, -0.21966221928596497, -0.03852514550089836, 0.1999732106924057, 1.3827438354492188...
SetStatusWeight updates the canary status weight value
[ 0.7437154054641724, -0.6316658854484558, 0.19086872041225433, 1.9746710062026978, -0.6408883333206177, 0.6828898787498474, -0.3140345811843872, 0.30854710936546326, -0.5697113275527954, 0.4558044373989105, -1.3005319833755493, -0.47690555453300476, 0.005770885851234198, 1.7371338605880737,...
SetStatusIterations updates the canary status iterations value
[ -0.554926335811615, -0.3408210873603821, 0.09161245077848434, 0.9637899398803711, -0.7044534683227539, 0.727160632610321, 0.41475674510002136, 0.0815403163433075, -0.20635275542736053, 1.0267194509506226, -0.556970477104187, -0.16667118668556213, -0.3246386647224426, 1.4169992208480835, ...
SetStatusPhase updates the canary status phase
[ -0.2926507294178009, -1.2258023023605347, 0.27526822686195374, 0.968101978302002, 0.07010970264673233, 0.3240956962108612, -1.1787511110305786, 0.5557252764701843, 0.011505859903991222, 0.45412787795066833, -0.6565380096435547, -0.5557608008384705, -0.11797380447387695, 1.5403683185577393,...
Double constructs a BSON double Value.
[ -0.14309091866016388, 0.27707231044769287, 0.365974485874176, 1.4381961822509766, -0.7242502570152283, 0.29825934767723083, -0.015048623085021973, -0.6307643055915833, -1.212984561920166, -0.564827561378479, -1.094138503074646, 0.1678394228219986, 0.9070248007774353, 0.17318852245807648, ...
String constructs a BSON string Value.
[ 0.5405265092849731, -0.8565773367881775, 0.2328784167766571, 0.003119779983535409, -0.7947648167610168, 0.2729720175266266, -0.24381163716316223, -0.9369795322418213, -0.3899730145931244, -0.3089383840560913, -0.39920273423194885, 0.039856281131505966, 0.26799437403678894, -1.0895044803619...
Document constructs a Value from the given IDoc. If nil is provided, a BSON Null value will be returned.
[ 0.5852051973342896, 0.5523877143859863, 0.45501717925071716, 0.35727524757385254, -0.8661264777183533, -0.9112456440925598, -0.32545924186706543, 0.01640239730477333, 0.7509472370147705, -0.33386069536209106, -0.6631503701210022, -0.5792118310928345, 0.49035730957984924, -0.536408245563507...
Array constructs a Value from arr. If arr is nil, a BSON Null value is returned.
[ 0.3182460069656372, -0.5869758129119873, 0.5501347780227661, 0.9847967028617859, -0.6372054815292358, -0.8622400164604187, -0.8376350402832031, -0.17404654622077942, 0.7090867757797241, 0.33281460404396057, -0.06974409520626068, 0.28476759791374207, 0.6939096450805664, 0.8348292112350464, ...
Binary constructs a BSON binary Value.
[ 0.2659568786621094, -0.6850947141647339, 0.6335108876228333, 1.3793046474456787, -0.43064409494400024, 0.034944482147693634, -0.8798021078109741, -0.5885174870491028, -0.7129031419754028, -0.625442624092102, -0.9725626111030579, 0.21707487106323242, 0.35338306427001953, -0.1144732609391212...
Undefined constructs a BSON binary Value.
[ 0.46249422430992126, -0.5034934282302856, 0.754304826259613, 1.1496498584747314, 0.2160286158323288, -0.02366524748504162, -0.23153291642665863, -0.4706045687198639, -0.7748717069625854, -1.4601612091064453, -0.8649452328681946, 0.2715780735015869, 0.3864900767803192, 0.3892616927623749, ...
ObjectID constructs a BSON objectid Value.
[ 0.8411206007003784, -0.5787995457649231, 0.4805343449115753, 0.6706712245941162, -0.3011520802974701, 0.7885629534721375, 0.11057603359222412, -0.17008888721466064, 0.3056478202342987, 0.3861629068851471, -0.2255261242389679, 0.1440029889345169, 0.5106385946273804, -0.8472110033035278, -...
Boolean constructs a BSON boolean Value.
[ 0.5702808499336243, 0.13128899037837982, 0.4595886766910553, 1.4168739318847656, -0.3337504267692566, -0.13084495067596436, -0.457895427942276, 0.9335000514984131, -0.9201356768608093, -0.6856780052185059, -1.001750111579895, -0.2944222092628479, 0.460744708776474, -0.8772763609886169, -...
DateTime constructs a BSON datetime Value.
[ 0.14133940637111664, 0.20305049419403076, 0.19495972990989685, 0.46197018027305603, -0.49782902002334595, -0.3572307527065277, -1.0160586833953857, -0.032427381724119186, -0.11568140983581543, 0.213034987449646, -0.9190535545349121, -0.8405857086181641, 0.7217357754707336, -0.3050681650638...
Time constructs a BSON datetime Value.
[ 0.08937396854162216, 0.10516601800918579, 0.4068715274333954, 0.2748805582523346, -0.2151418775320053, -0.14885178208351135, -1.216253638267517, -0.3181411623954773, -0.47351160645484924, 0.7924269437789917, -1.215980052947998, -1.503064513206482, 0.3551572263240814, 0.2514915466308594, ...
Null constructs a BSON binary Value.
[ 0.678236722946167, -0.960051417350769, 0.5567951202392578, 0.916687548160553, -0.6084499359130859, -0.08060083538293839, -0.6144421100616455, -0.744781494140625, 0.32384300231933594, -1.082294225692749, -1.061253309249878, 0.32719025015830994, 0.5527464747428894, 0.12153182923793793, 0.0...
Regex constructs a BSON regex Value.
[ 0.3101198077201843, 0.0034081488847732544, 0.23092012107372284, 0.5915148258209229, -0.12285374104976654, -0.7716100215911865, -0.06923232227563858, 0.8758893013000488, -0.2929806709289551, -1.1316787004470825, -0.3197387754917145, 0.5152879953384399, 0.22224678099155426, -0.93560880422592...
DBPointer constructs a BSON dbpointer Value.
[ 0.4275342524051666, -0.42186084389686584, 0.34133124351501465, -0.02364371530711651, -0.23708045482635498, 0.17079636454582214, -0.7123386263847351, -0.9343578815460205, 0.3610750734806061, -0.25614577531814575, 0.9916102886199951, 0.37139618396759033, -1.0124733448028564, 0.21929515898227...