Skip to content

Commit

Permalink
ignore duplicate quads by default
Browse files Browse the repository at this point in the history
  • Loading branch information
dennwc committed Apr 24, 2017
1 parent c258c2d commit 9cb0eef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/cayley/cayley.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func init() {
rootCmd.PersistentFlags().StringP("dbpath", "a", "", "path or address string for database")
rootCmd.PersistentFlags().Bool("read_only", false, "open database in read-only mode")

rootCmd.PersistentFlags().Bool("dup", false, "don't stop loading on duplicated on add")
rootCmd.PersistentFlags().Bool("dup", true, "don't stop loading on duplicated on add")
rootCmd.PersistentFlags().Bool("missing", false, "don't stop loading on missing key on delete")
rootCmd.PersistentFlags().Int("batch", quad.DefaultBatch, "size of quads batch to load at once")

Expand Down
2 changes: 1 addition & 1 deletion graph/quadwriter.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func IsInvalidAction(err error) bool {
var (
// IgnoreDuplicates specifies whether duplicate quads
// cause an error during loading or are ignored.
IgnoreDuplicates = false
IgnoreDuplicates = true

// IgnoreMissing specifies whether missing quads
// cause an error during deletion or are ignored.
Expand Down

0 comments on commit 9cb0eef

Please sign in to comment.