Skip to content
Snippets Groups Projects
Commit 9c19a235 authored by Manish R Jain's avatar Manish R Jain
Browse files

Start working on the debug tool

parent 9982c02e
No related branches found
No related tags found
No related merge requests found
package dlist
import (
"flag"
"github.com/dgraph-io/dgraph/posting"
"github.com/dgraph-io/dgraph/store"
"github.com/dgraph-io/dgraph/x"
)
var glog = x.Log("dlist")
var dir = flag.String("dir", "", "Directory containing ")
var xid = flag.String("xid", "", "Get posting list for xid")
var uid = flag.String("uid", "", "Get posting list for uid")
var attr = flag.String("attr", "", "Get posting list for attribute")
func main() {
flag.Parse()
var s store.Store
s.Init(*dir)
defer s.Close()
var key []byte
if len(*uid) > 0 && len(*attr) > 0 {
key = posting.Key(*uid, *attr)
} else if len(*attr) > 0 {
glog.Fatal("Not handling this yet.")
} else if len(*uid) > 0 {
key = posting.Key(*uid, "_xid_")
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment